/* 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: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.current-time-section {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
}

.current-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.current-time-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.current-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.current-time-card {
    background-color: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-card-value {
    font-size: 16px;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    color: #10b981;
    word-break: break-all;
    line-height: 1.4;
}

.conversion-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conversion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.converter-card {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.converter-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.converter-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.converter-description {
    font-size: 12px;
    color: #9ca3af;
}

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

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

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

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

.select-input-small {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -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;
    min-width: 120px;
}

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

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

.converter-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
}

.result-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    min-width: 80px;
}

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

.button-copy-small {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.button-copy-small:hover {
    color: #e5e7eb;
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.button-copy-small.copied {
    color: #10b981;
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.batch-section {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
}

.batch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.batch-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.batch-description {
    font-size: 12px;
    color: #9ca3af;
}

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

.batch-input-group {
    margin-bottom: 16px;
}

.batch-textarea {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    outline: none;
    resize: vertical;
    width: 100%;
    min-height: 120px;
    transition: border-color 150ms ease;
    line-height: 1.5;
}

.batch-textarea:focus {
    border-color: #3b82f6;
}

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

.batch-results {
    border-top: 1px solid #222222;
    padding-top: 16px;
}

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

.batch-results-label {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
}

.batch-results-content {
    background-color: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 6px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.batch-result-item {
    padding: 8px 0;
    border-bottom: 1px solid #1f1f1f;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    line-height: 1.4;
}

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

.batch-result-timestamp {
    color: #60a5fa;
    font-weight: 600;
}

.batch-result-date {
    color: #e5e7eb;
    margin-left: 12px;
}

.quick-timestamps-section {
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
}

.quick-timestamps-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.quick-timestamps-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.quick-timestamps-description {
    font-size: 12px;
    color: #9ca3af;
}

.quick-timestamps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.quick-timestamp {
    background-color: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 150ms ease;
}

.quick-timestamp:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.quick-timestamp-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 4px;
}

.quick-timestamp-value {
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    color: #e5e7eb;
    word-break: break-all;
}

.quick-timestamp-date {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.select-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -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;
}

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

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    flex-shrink: 0;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    flex-shrink: 0;
}

.button-copy {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.button-copy:hover {
    color: #e5e7eb;
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.button-copy.copied {
    color: #10b981;
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

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

    .tool-container {
        gap: 24px;
    }

    .current-time-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .conversion-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .batch-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .batch-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .quick-timestamps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .current-time-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .batch-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

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

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

        padding: 0 16px;
    }

    .current-time-section,
    .converter-card,
    .batch-section,
    .quick-timestamps-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
        font-size: 24px;
        line-height: 32px;
    }

    .time-card-value {
        font-size: 14px;
    }

    .converter-results {
        gap: 6px;
    }

    .result-item {
        padding: 6px 8px;
    }

    .batch-textarea {
        min-height: 100px;
        font-size: 13px;
    }

    .quick-timestamp-value {
        font-size: 12px;
    }

    .batch-result-item {
        font-size: 12px;
    }

    .batch-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

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

.cta-content {
    color: #9ca3af;
    font-size: 14px;
}

.cta-content strong {
    color: #ffffff;
}

.btn-pro {
    color: #0a0a0a;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 150ms ease;
    font-family: inherit;
}

.btn-pro:hover {
    opacity: 0.9;
}

.btn-pro.full-width {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.pro-badge {
    display: inline-block;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-badge-inline {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 4px;
}

.pro-section {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    background-color: #141414;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 12px;
    z-index: 1;
}

.pro-section::after {
    content: 'Pro Feature';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2;
}

.pro-section.unlocked {
    opacity: 1;
    pointer-events: auto;
}

.pro-section.unlocked::before,
.pro-section.unlocked::after {
    display: none;
}

.pro-section.unlocked .pro-badge {
    display: none;
}

.timezone-section {
    background-color: #141414;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.timezone-header {
    margin-bottom: 16px;
}

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

.timezone-description {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.timezone-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timezone-input-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.timezone-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1f2937;
    border-radius: 8px;
}

.timezone-result .result-value {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 14px;
    color: #e5e7eb;
}

.custom-format-section {
    background-color: #141414;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.custom-format-header {
    margin-bottom: 16px;
}

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

.custom-format-description {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.custom-format-controls {
    margin-bottom: 16px;
}

.format-help {
    margin-top: 8px;
}

.format-help small {
    color: #6b7280;
    font-size: 11px;
}

.custom-format-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1f2937;
    border-radius: 8px;
}

.custom-format-result .result-value {
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 14px;
    color: #e5e7eb;
}

.batch-limit {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    transition: color 0.3s ease;
}

.batch-results-controls {
    display: flex;
    gap: 8px;
}

.batch-result-item.invalid {
    opacity: 0.6;
}

.batch-result-item.invalid .batch-result-date {
    color: #ef4444;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #374151;
}

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

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

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

.modal-body {
    padding: 24px;
}

.upgrade-feature {
    font-size: 16px;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 8px 0;
    color: #9ca3af;
    font-size: 14px;
}

.feature-list li::before {
    content: '✓ ';
    color: #10b981;
}

.upgrade-pricing {
    text-align: center;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 8px;
}

.upgrade-pricing .price {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.upgrade-pricing .price-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #374151;
}

@media (max-width: 768px) {
    .pro-cta-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .cta-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .timezone-controls {
        flex-direction: column;
    }

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

    .batch-results-controls {
        flex-direction: column;
        width: 100%;
    }

    .batch-results-controls button {
        width: 100%;
    }
}