/* Cron Job Generator - Light Theme */


/* Dark mode overrides */
[data-theme="dark"] {
    --tool-bg: #0f172a;
    --tool-border: #334155;
    --tool-border-hover: #475569;
    --tool-text: #f8fafc;
    --tool-text-secondary: #94a3b8;
    --tool-input-bg: #1e293b;
    --tool-input-border: #334155;
    --tool-button-bg: #1e293b;
    --tool-button-hover: #334155;
    --tool-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --tool-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --status-info: rgba(96, 165, 250, 0.2);
    --status-success: rgba(34, 197, 94, 0.2);
    --status-error: rgba(248, 113, 113, 0.2);
    --bg-color: #0f172a;
}

/* Dark mode element overrides */
[data-theme="dark"] .tool-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .tool-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
}

[data-theme="dark"] label {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] p {
    color: var(--text-secondary, #cbd5e1);
}
.tool-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.input-section, .result-section, .presets-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.presets-section {
    border-bottom: none;
}

.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #3b82f6;
    color: var(--bg-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.frequency-section h4, .result-section h3, .presets-section h3 {
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
}

.frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-item:hover {
    border-color: #3b82f6;
    background: var(--color-blue-soft);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.radio-item input[type="radio"]:checked + .radio-mark {
    border-color: #3b82f6;
    background: #3b82f6;
}

.radio-item input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.custom-options {
    display: none;
}

.custom-options.active {
    display: block;
}

.cron-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.field-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: border-color 0.2s ease;
}

.field-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.time-selector h5 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.time-inputs {
    display: flex;
    gap: 1rem;
}

.time-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input label {
    font-weight: 600;
    color: var(--text-secondary);
}

.time-input select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cron-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.expression-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.expression-value {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.copy-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.expression-breakdown {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.field-explanation {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.field-value {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.field-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.human-readable, .next-runs {
    margin-bottom: 1.5rem;
}

.human-readable h4, .next-runs h4 {
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.human-readable p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--color-green-soft);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #10b981;
    margin: 0;
}

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

.next-runs li {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.preset-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.preset-btn:hover {
    border-color: #3b82f6;
    background: var(--color-blue-soft);
}

.preset-btn strong {
    display: block;
    font-family: 'Courier New', monospace;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.preset-btn span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.format-diagram {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.format-field {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.format-field strong {
    display: block;
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.format-field span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.format-field small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .tool-card {
        padding: 1.5rem;
    }
    
    .frequency-options {
        grid-template-columns: 1fr;
    }
    
    .cron-fields {
        grid-template-columns: 1fr;
    }
    
    .expression-breakdown {
        flex-direction: column;
    }
    
    .time-inputs {
        flex-direction: column;
    }
    
    .format-diagram {
        flex-direction: column;
    }
}



