/* Cron Generator Specific Styles */

/* Presets Section */
.presets-section {
    margin-bottom: var(--space-6);
}

.presets-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.preset-name {
    font-weight: 600;
    color: var(--text-primary);
}

.preset-cron {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Builder Section */
.builder-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.builder-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.cron-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.cron-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cron-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cron-field input {
    padding: var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.cron-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.field-help {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* Result Section */
.result-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.result-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.cron-result {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.cron-result code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cron-description {
    padding: var(--space-3);
    background: var(--success-bg);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-md);
    color: var(--success-color);
    font-weight: 500;
}

/* Next Runs Section */
.next-runs-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.next-runs-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.next-runs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-runs-list li {
    padding: var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Syntax Help */
.syntax-help {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.syntax-help h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.syntax-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-4);
}

.syntax-table th,
.syntax-table td {
    padding: var(--space-3);
    text-align: left;
    border: 1px solid var(--border-color);
}

.syntax-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.syntax-table td {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.syntax-examples h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.syntax-examples ul {
    list-style: none;
    padding: 0;
}

.syntax-examples li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
}

.syntax-examples code {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .presets-grid {
        grid-template-columns: 1fr;
    }

    .cron-fields {
        grid-template-columns: 1fr;
    }

    .cron-result {
        flex-direction: column;
        align-items: stretch;
    }

    .cron-result code {
        text-align: center;
    }
}

/* Dark mode */
[data-theme="dark"] .builder-section,
[data-theme="dark"] .result-section,
[data-theme="dark"] .next-runs-section,
[data-theme="dark"] .syntax-help {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .preset-btn {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .cron-field input {
    background: var(--bg-secondary);
}

[data-theme="dark"] .cron-result,
[data-theme="dark"] .next-runs-list li,
[data-theme="dark"] .syntax-table th {
    background: var(--bg-secondary);
}

