/* Tool-specific styles only - base styles are in tool-layout.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.modal-hidden {
    display: none;
}

.mode-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #374151;
}

.tab-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
}

.tab-btn:hover {
    color: #d1d5db;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

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

.cron-expression-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 1.25rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    letter-spacing: 0.1em;
    text-align: center;
    width: 100%;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cron-expression-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.cron-expression-input::placeholder {
    color: #4b5563;
}

.format-toggle {
    display: flex;
    gap: 0;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    overflow: hidden;
}

.format-btn {
    flex: 1;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.format-btn:hover {
    color: #d1d5db;
}

.format-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

.field-labels {
    display: flex;
    justify-content: space-around;
    padding: 0 16px;
}

.field-label {
    font-size: 12px;
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

.field-ranges {
    display: flex;
    justify-content: space-around;
    padding: 0 16px;
}

.field-range {
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #4b5563;
    text-align: center;
    flex: 1;
}

.builder-field {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 8px;
}

.builder-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.builder-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.builder-field-range {
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #6b7280;
}

.builder-type-selector {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.type-pill {
    background-color: #141414;
    border: 1px solid #374151;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.type-pill:hover {
    color: #d1d5db;
    border-color: #4b5563;
}

.type-pill.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.builder-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
}

.builder-values input[type="number"],
.builder-values select {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 80px;
    transition: border-color 150ms ease;
}

.builder-values input[type="number"]:focus,
.builder-values select:focus {
    border-color: #3b82f6;
}

.builder-values .value-chip {
    background-color: #374151;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 150ms ease;
    border: 1px solid transparent;
}

.builder-values .value-chip:hover {
    background-color: #4b5563;
}

.builder-values .value-chip.selected {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.builder-preview {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.builder-preview-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    flex-shrink: 0;
}

.builder-preview-expression {
    font-size: 1.1rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #3b82f6;
    letter-spacing: 0.1em;
}

.presets-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.presets-title {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.preset-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    text-align: center;
}

.preset-btn:hover {
    border-color: #3b82f6;
    background-color: #141414;
}

.preset-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.nl-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.nl-input-group {
    display: flex;
    gap: 8px;
}

.nl-input {
    flex: 1;
    background-color: #141414;
    border: 1px solid #374151;
    border-left: 3px solid #3b82f6;
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease;
}

.nl-input:focus {
    border-color: #3b82f6;
}

.nl-input::placeholder {
    color: #4b5563;
}

.nl-result {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #e5e7eb;
}

.nl-result code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #3b82f6;
    background-color: #141414;
    padding: 2px 6px;
    border-radius: 3px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.output-block-title {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description-output {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 16px;
    background-color: #1a1a1a;
    border-radius: 6px;
    color: #e5e7eb;
}

.validation-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
}

.validation-status.valid {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.validation-status.invalid {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.validation-status.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.next-runs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.next-runs-list li {
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #e5e7eb;
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.next-runs-list li:last-child {
    border-bottom: none;
}

.next-runs-list .run-index {
    color: #4b5563;
    font-size: 12px;
    min-width: 24px;
}

.next-runs-list .run-time {
    color: #e5e7eb;
}

.show-more-btn {
    background: none;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    text-align: center;
}

.show-more-btn:hover {
    border-color: #4b5563;
    color: #d1d5db;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #374151;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.calendar-nav-btn:hover {
    border-color: #3b82f6;
    color: #e5e7eb;
}

.calendar-month-label {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    min-width: 140px;
    text-align: center;
}

.calendar-grid {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 6px;
    overflow: hidden;
}

.calendar-header-row {
    display: flex;
    background-color: #141414;
    border-bottom: 1px solid #374151;
}

.calendar-header-row span {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 8px 4px;
}

.calendar-days {
    display: flex;
    flex-wrap: wrap;
}

.calendar-days .calendar-day {
    width: calc(100% / 7);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: default;
    position: relative;
    font-size: 13px;
    color: #6b7280;
    border: 1px solid transparent;
    transition: border-color 150ms ease;
}

.calendar-day.current-month {
    color: #e5e7eb;
}

.calendar-day.today {
    border-color: #3b82f6;
    border-radius: 4px;
}

.calendar-day.has-runs {
    cursor: pointer;
}

.calendar-day.has-runs::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: #3b82f6;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.calendar-day.has-runs:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.calendar-day.selected {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    border-radius: 4px;
}

.calendar-day-detail {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
}

.calendar-day-detail h4 {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}

.calendar-day-detail ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-day-detail ul li {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #e5e7eb;
    padding: 4px 0;
}

.select-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease;
}

.select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select-input option {
    background-color: #1a1a1a;
}

.diff-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diff-description {
    font-size: 14px;
    color: #e5e7eb;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.diff-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diff-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.diff-entry.source-a {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    color: #93c5fd;
}

.diff-entry.source-b {
    background-color: rgba(168, 85, 247, 0.1);
    border-left: 3px solid #a855f7;
    color: #d8b4fe;
}

.diff-entry.source-both {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    color: #6ee7b7;
}

.diff-entry .diff-label {
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 40px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.error-display {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #fca5a5;
}

.pro-cta-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #374151;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    background-color: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.copy-feedback {
    font-size: 12px;
    color: #10b981;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 150ms ease;
}

.copy-feedback.visible {
    opacity: 1;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .output-section {
        padding: 16px;
    }

    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nl-input-group {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .button-secondary {
        width: 100%;
    }

    .builder-type-selector {
        flex-wrap: wrap;
    }

    .cron-expression-input {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

        padding: 0 16px;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

    .format-toggle {
        flex-direction: column;
    }

    .format-btn {
        padding: 10px 12px;
    }

    .calendar-day {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .preset-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .field-labels,
    .field-ranges {
        padding: 0 8px;
    }

    .field-label {
        font-size: 10px;
    }

    .builder-field {
        padding: 12px;
    }
}

.bug-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 24px;
}

.bug-report-content {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
}

.bug-report-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.bug-report-content textarea {
    width: 100%;
    min-height: 120px;
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    margin-bottom: 16px;
}

.bug-report-content textarea:focus {
    border-color: #3b82f6;
}

.bug-report-content textarea::placeholder {
    color: #6b7280;
}

.bug-report-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.bug-report-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
}

#bug-cancel {
    background: none;
    border: 1px solid #374151;
    color: #9ca3af;
}

#bug-cancel:hover {
    background-color: #1a1a1a;
}

#bug-submit {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
}

#bug-submit:hover {
    background-color: #2563eb;
}