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

.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;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

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

.datetime-row {
    display: flex;
    gap: 12px;
}

.datetime-row .text-input {
    flex: 1;
}

.tz-dropdown-wrapper {
    position: relative;
}

.tz-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background-color: #141414;
    border: 1px solid #374151;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 50;
}

.tz-dropdown-group {
    padding: 4px 0;
}

.tz-dropdown-group-label {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px 4px;
}

.tz-dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #e5e7eb;
    cursor: pointer;
    transition: background-color 100ms ease;
}

.tz-dropdown-item:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

.tz-dropdown-item .tz-item-id {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

.tz-dropdown-item:hover .tz-item-id {
    color: rgba(255, 255, 255, 0.7);
}

.tz-dropdown-empty {
    padding: 16px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.live-clock {
    font-size: 13px;
    color: #999999;
    min-height: 20px;
}

.quick-zones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-zone-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.quick-zone-btn:hover {
    background-color: #374151;
    border-color: #374151;
}

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

.action-buttons {
    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;
    flex: 1;
}

.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;
    border-radius: 6px;
}

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

.result-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.result-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.result-time {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.result-abbr {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.result-offset {
    font-size: 14px;
    color: #9ca3af;
}

.result-date {
    font-size: 14px;
    color: #9ca3af;
}

.result-card.date-changed {
    border-color: #3b82f6;
    border-width: 1px;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.time-difference {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    padding: 8px 0;
}

.dst-note {
    font-size: 13px;
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
}

.output-actions {
    display: flex;
    gap: 12px;
}

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

.pro-section.locked {
    opacity: 0.6;
}

.pro-section.unlocked {
    opacity: 1;
}

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

.pro-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
}

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

.pro-section-desc {
    font-size: 14px;
    color: #9ca3af;
}

.comparison-add-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comparison-add-row .tz-dropdown-wrapper {
    flex: 1;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.comparison-table th {
    background-color: #1a1a1a;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #374151;
}

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

.comparison-table tbody tr {
    transition: background-color 100ms ease;
}

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

.comparison-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.comparison-table tbody tr.date-changed {
    background-color: rgba(59, 130, 246, 0.08);
}

.comparison-table .drag-handle {
    cursor: grab;
    color: #6b7280;
    font-size: 14px;
    user-select: none;
}

.comparison-table .drag-handle:active {
    cursor: grabbing;
}

.comparison-table .remove-zone-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
}

.comparison-table .remove-zone-btn:hover {
    color: #ef4444;
}

.participant-add-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.participant-add-row .tz-dropdown-wrapper {
    flex: 1;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px 12px;
}

.participant-tz-label {
    flex: 1;
    font-size: 14px;
    color: #e5e7eb;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-hours {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.participant-hours input[type="time"] {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color-scheme: dark;
    width: 100px;
}

.participant-hours input[type="time"]:focus {
    border-color: #3b82f6;
}

.participant-hours-sep {
    font-size: 13px;
    color: #6b7280;
}

.participant-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.participant-remove:hover {
    color: #ef4444;
}

.meeting-actions {
    display: flex;
    gap: 12px;
}

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

.meeting-results-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.meeting-slot {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px;
}

.meeting-slot-utc {
    font-size: 15px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 8px;
}

.meeting-slot-local {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}

.meeting-no-overlap {
    font-size: 14px;
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    padding: 12px 14px;
}

.meeting-best-partial {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

.meeting-prompt {
    font-size: 14px;
    color: #6b7280;
}

.overlap-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overlap-hour-labels {
    display: flex;
    padding-left: 140px;
}

.overlap-hour-label {
    flex: 1;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    min-width: 0;
}

.overlap-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.overlap-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlap-bar-label {
    width: 132px;
    flex-shrink: 0;
    font-size: 13px;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlap-bar {
    flex: 1;
    display: flex;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.overlap-segment {
    height: 100%;
    flex: 1;
    position: relative;
    transition: opacity 100ms ease;
}

.overlap-segment:hover {
    opacity: 0.8;
}

.overlap-segment.all {
    background-color: #22c55e;
}

.overlap-segment.partial {
    background-color: #eab308;
}

.overlap-segment.none {
    background-color: #1a1a1a;
}

.overlap-segment-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #e5e7eb;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    margin-bottom: 4px;
}

.overlap-segment:hover .overlap-segment-tooltip {
    display: block;
}

.overlap-legend {
    display: flex;
    gap: 16px;
    padding-left: 140px;
    margin-top: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-all {
    background-color: #22c55e;
}

.legend-partial {
    background-color: #eab308;
}

.legend-none {
    background-color: #1a1a1a;
    border: 1px solid #374151;
}

.share-actions {
    display: flex;
    gap: 12px;
}

.share-output {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-url {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    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: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.toast.toast-success {
    border-color: #059669;
    color: #6ee7b7;
}

.toast.toast-error {
    border-color: #dc2626;
    color: #fca5a5;
}

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

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

.modal-hidden {
    display: none;
}

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

    .datetime-row {
        flex-direction: column;
        gap: 8px;
    }

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

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

    .result-time {
        font-size: 1.5rem;
    }

    .pro-section {
        padding: 16px;
    }

    .comparison-add-row,
    .participant-add-row {
        flex-direction: column;
        gap: 8px;
    }

    .participant-row {
        flex-wrap: wrap;
    }

    .participant-tz-label {
        flex-basis: 100%;
    }

    .participant-hours input[type="time"] {
        width: 90px;
    }

    /* Overlap chart responsive */
    .overlap-hour-labels {
        padding-left: 80px;
    }

    .overlap-bar-label {
        width: 72px;
        font-size: 11px;
    }

    .overlap-legend {
        padding-left: 80px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .overlap-hour-label {
        font-size: 8px;
    }

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

    .share-output {
        flex-direction: column;
    }

    .share-url {
        width: 100%;
    }

        padding: 0 16px;
    }

    .quick-zones {
        gap: 6px;
    }

    .quick-zone-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .overlap-bar {
        height: 24px;
    }
}