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

.modal-hidden {
    display: none;
}

.current-timestamp-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.current-timestamp-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.current-timestamp-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.current-timestamp-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #3b82f6;
    letter-spacing: 1px;
}

.current-timestamp-ms {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #60a5fa;
}

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

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

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

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

.mode-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 150ms ease;
}

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

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

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

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

.input-hint {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.format-note {
    font-size: 13px;
    color: #f59e0b;
    text-align: center;
    padding: 6px 12px;
    background-color: rgba(245, 158, 11, 0.08);
    border-radius: 4px;
}

.date-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    outline: none;
    color-scheme: dark;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.tz-toggle {
    display: flex;
    gap: 0;
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 3px;
    width: fit-content;
}

.tz-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 150ms ease;
}

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

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

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

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

.batch-header label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.batch-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    width: 100%;
    min-height: 120px;
    outline: none;
    resize: vertical;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

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

.copy-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background-color: #374151;
    color: #ffffff;
}

.copy-btn.copied {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

.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;
    width: 100%;
}

.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;
    width: 100%;
}

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

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

.output-placeholder {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    padding: 24px 0;
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a2a;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    min-width: 100px;
    flex-shrink: 0;
}

.result-value {
    flex: 1;
    font-size: 15px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #ffffff;
    word-break: break-all;
}

.result-relative {
    color: #3b82f6;
    font-family: inherit;
}

.pro-feature-row {
    opacity: 1;
}

.error-display {
    background-color: #1a0a0a;
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 14px 16px;
    color: #ff5370;
    font-size: 14px;
}

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

.timezone-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timezone-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.timezone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tz-chip {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 150ms ease;
}

.tz-chip:hover {
    border-color: #3b82f6;
    color: #ffffff;
}

.tz-chip.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.timezone-search {
    position: relative;
}

.tz-search-input {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

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

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

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

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

.timezone-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tz-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.tz-result-row:last-child {
    border-bottom: none;
}

.tz-result-name {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    min-width: 140px;
    flex-shrink: 0;
}

.tz-result-value {
    flex: 1;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #e5e7eb;
}

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

.tz-remove-btn:hover {
    color: #ef4444;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.batch-results-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.batch-results-table {
    width: 100%;
    overflow-x: auto;
}

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

.batch-results-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
    border-bottom: 1px solid #374151;
}

.batch-results-table td {
    padding: 10px 12px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: #e5e7eb;
    border-bottom: 1px solid #2a2a2a;
}

.batch-results-table tr:nth-child(even) td {
    background-color: #1a1a1a;
}

.batch-results-table tr:nth-child(odd) td {
    background-color: #141414;
}

.batch-results-table tr.batch-error td {
    border-left: 3px solid #ef4444;
    color: #ff5370;
}

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

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

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

@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: 16px;
    }

    .input-section {
        padding: 16px;
    }

    .output-section {
        padding: 16px;
    }

    .current-timestamp-section {
        padding: 16px;
    }

    .current-timestamp-value {
        font-size: 1.5rem;
    }

    .current-timestamp-ms {
        font-size: 1.125rem;
    }

    .result-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .result-label {
        min-width: 100%;
    }

    .result-value {
        font-size: 14px;
    }

    .tz-result-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tz-result-name {
        min-width: 100%;
    }

    .timezone-chips {
        gap: 6px;
    }

    .tz-chip {
        padding: 5px 12px;
        font-size: 12px;
    }

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

        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .mode-tab {
        font-size: 13px;
        padding: 8px 12px;
    }

    .timestamp-input {
        font-size: 1rem;
        padding: 12px;
    }

    .batch-results-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .batch-results-table table {
        min-width: 500px;
    }

    .current-timestamp-display {
        flex-wrap: wrap;
        gap: 6px;
    }
}