/* 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;
}

.mode-tabs {
    display: flex;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    background-color: transparent;
    cursor: pointer;
    transition: all 150ms ease;
}

.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;
}

.input-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.input-group-inline > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    flex-shrink: 0;
    min-width: 48px;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

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

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.text-input-small {
    padding: 8px 12px;
    font-size: 14px;
}

input[type="date"].text-input {
    color-scheme: dark;
}

input[type="date"].text-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

input[type="number"].text-input {
    -moz-appearance: textfield;
}

input[type="number"].text-input::-webkit-outer-spin-button,
input[type="number"].text-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

label.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

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

.radio-custom {
    width: 18px;
    height: 18px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 50%;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

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

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.button-group {
    display: flex;
    gap: 12px;
}

.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: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-small {
    padding: 8px 16px;
    font-size: 13px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-detail {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.stats-grid-small {
    gap: 8px;
}

.stat-card-small {
    padding: 12px;
}

.stat-card-small .stat-value {
    font-size: 22px;
}

.result-date-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.result-date-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-date-value {
    font-size: 22px;
    font-weight: 600;
    color: #3b82f6;
}

.copy-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-confirmation {
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
}

.pro-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.pro-feature-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    position: relative;
    opacity: 0.6;
    transition: opacity 150ms ease;
}

.pro-feature-block.unlocked {
    opacity: 1;
}

.pro-feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.subsection-title {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.holiday-add-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.holiday-add-form .input-group-inline {
    flex: 1;
    min-width: 120px;
}

.holiday-add-form .button-secondary {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.holiday-list::-webkit-scrollbar {
    width: 4px;
}

.holiday-list::-webkit-scrollbar-track {
    background: #141414;
}

.holiday-list::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 2px;
}

.holiday-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    font-size: 13px;
}

.holiday-item-info {
    display: flex;
    gap: 12px;
    color: #e5e7eb;
}

.holiday-item-date {
    color: #9ca3af;
    flex-shrink: 0;
}

.holiday-item-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    transition: color 150ms ease;
}

.holiday-item-remove:hover {
    color: #ef4444;
}

.holiday-actions {
    display: flex;
    gap: 8px;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.overlap-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
}

.overlap-status {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.overlap-status.overlap-yes {
    color: #10b981;
}

.overlap-status.overlap-no {
    color: #ef4444;
}

.overlap-detail {
    font-size: 13px;
    color: #9ca3af;
}

.csv-upload-zone {
    background-color: #0a0a0a;
    border: 2px dashed #2a2a2a;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 150ms ease;
    outline: none;
}

.csv-upload-zone:hover,
.csv-upload-zone:focus-visible {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.csv-upload-zone.drag-active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.7;
    color: #6b7280;
    letter-spacing: 2px;
}

.upload-primary {
    font-size: 15px;
    font-weight: 400;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.upload-secondary {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.bulk-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-results-header h4 {
    font-size: 15px;
    font-weight: 500;
    color: #d1d5db;
}

.bulk-count {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bulk-table thead {
    position: sticky;
    top: 0;
}

.bulk-table th {
    background-color: #1a1a1a;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.bulk-table td {
    padding: 8px 12px;
    color: #e5e7eb;
    border-bottom: 1px solid #1a1a1a;
}

.bulk-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.bulk-table tbody tr.row-error {
    background-color: rgba(255, 107, 107, 0.1);
}

.bulk-table tbody tr.row-error td {
    color: #fca5a5;
}

.bulk-actions {
    display: flex;
    gap: 8px;
}

.pro-cta-content {
    max-width: 1200px;
    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;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    white-space: nowrap;
}

.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;
}

.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;
}

@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;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    .mode-tabs {
        padding: 3px;
    }

    .mode-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .holiday-add-form {
        flex-direction: column;
    }

    .holiday-add-form .input-group-inline {
        min-width: 100%;
    }

    .holiday-add-form .button-secondary {
        width: 100%;
    }

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

        padding: 0 16px;
    }

    .csv-upload-zone {
        padding: 24px 16px;
    }

    .pro-feature-block {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .radio-group {
        gap: 16px;
    }

    .bulk-table {
        font-size: 12px;
    }

    .bulk-table th,
    .bulk-table td {
        padding: 6px 8px;
    }
}