/* Cron生成器样式 */
.cron-builder {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cron-expression {
    margin-bottom: 2rem;
}

.expression-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expression-display input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.expression-display input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
    outline: none;
}

.copy-btn {
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.next-runs {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #5a6a7e;
    border-left: 4px solid #6a11cb;
}

.cron-tabs {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    background-color: #f0f2f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #5a6a7e;
}

.tab-btn:hover {
    background-color: #e0e6ed;
    color: #333;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group h4 {
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.interval-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.interval-input input {
    width: 80px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #5a6a7e;
}

.grid-item:hover {
    background-color: #d0d6dd;
    color: #333;
}

.grid-item.selected {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.examples {
    margin-top: 2rem;
}

.examples h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.example-item {
    padding: 0.6rem 1rem;
    background-color: #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #5a6a7e;
}

.example-item:hover {
    background-color: #d0d6dd;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .expression-display {
        flex-direction: column;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .grid-item {
        height: 36px;
        font-size: 0.8rem;
    }
} 