/* crontab生成器专用样式 */

.crontab-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.crontab-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.crontab-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.crontab-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.crontab-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
}

.crontab-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.crontab-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.crontab-card .card-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-select, .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.custom-input {
    margin-top: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.result-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.result-section .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-input {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #495057;
}

.btn-copy {
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-copy.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* 案例部分样式 */
.examples-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

.examples-card .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.examples-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.examples-card .card-body {
    padding: 25px;
}

.example-category h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.example-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.example-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.example-item .list-group-item {
    border: none;
    padding: 15px 20px;
    background: transparent;
}

.example-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.example-expression {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.btn-use-example {
    border: 2px solid #667eea;
    border-radius: 6px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
}

.btn-use-example:hover {
    background: #667eea;
    color: white;
}

/* 语法说明部分 */
.syntax-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
}

.syntax-card .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.syntax-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.syntax-card .card-body {
    padding: 25px;
}

.syntax-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.syntax-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.syntax-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
}

.syntax-list li:last-child {
    border-bottom: none;
}

.syntax-list strong {
    color: #667eea;
    min-width: 80px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .crontab-header h1 {
        font-size: 2rem;
    }
    
    .crontab-card .card-body {
        padding: 20px;
    }
    
    .examples-card .card-body {
        padding: 20px;
    }
    
    .syntax-card .card-body {
        padding: 20px;
    }
    
    .btn-generate {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crontab-card,
.examples-card,
.syntax-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功提示样式 */
.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
} 