:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* related to and faqs component variables */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e2e8f0;
    --surface: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --surface-muted: #f4f6fb;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

.tz-converter-page {
    padding: 2rem 0;
}

.tz-hero {
    margin-bottom: 2rem;
}

.tz-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tz-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 740px;
    margin: 0;
    line-height: 1.6;
}

.tz-hero-block {
    margin-bottom: 2rem;
}

.tz-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
}

.tz-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1.25rem;
    padding: 0;
}

.tz-pill {
    list-style: none;
    padding: 0.65rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tz-main-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.tz-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.tz-column {
    min-width: 0;
}

.tz-input-column{
    padding: 0 2rem;
}

.tz-panel-head {
    margin-bottom: 1rem;
}

.tz-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.tz-panel-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tz-converter-form {
    display: grid;
    gap: 2rem;
}

.tz-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tz-input-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tz-tooltip {
    position: relative;
    display: inline-block;
}

.tz-tooltip-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tz-tooltip-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tz-tooltip-text {
    visibility: hidden;
    width: 250px;
    background: var(--text-primary);
    color: white;
    text-align: left;
    border-radius: 8px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: var(--shadow-lg);
}

.tz-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
}

.tz-tooltip:hover .tz-tooltip-text {
    visibility: visible;
    opacity: 1;
}

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

.tz-select {
    width: 100%;
    min-height: 56px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-primary);
    transition: var(--transition);
    appearance: none;
    cursor: pointer;
}

.tz-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tz-datetime-input {
    width: 100%;
    min-height: 56px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-primary);
    transition: var(--transition);
}

.tz-datetime-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tz-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.tz-result-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.tz-result-time {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tz-result-date {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.tz-result-timezone {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tz-difference-badge {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tz-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tz-btn {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.tz-btn-primary {
    background: var(--primary-color);
    color: white;
}

.tz-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tz-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.tz-btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tz-btn-success {
    background: var(--success-color);
    color: white;
}

.tz-btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tz-share-container {
    background: rgba(241, 245, 249, 0.8);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    margin-top: 1.25rem;
}

.tz-share-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tz-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
}

.tz-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    border: none;
}

.tz-share-btn i {
    font-size: 1rem;
    line-height: 1;
}

.tz-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.tz-share-btn.share-x { background: #111827; }
.tz-share-btn.share-facebook { background: #1877f2; }
.tz-share-btn.share-linkedin { background: #0a66c2; }
.tz-share-btn.share-reddit { background: #ff4500; }
.tz-share-btn.share-telegram { background: #229ed9; }
.tz-share-btn.share-whatsapp { background: #25d366; color: #0f172a; }

.tz-quick-zones {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tz-quick-zones-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tz-quick-zones-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.tz-quick-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.tz-quick-zone-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.tz-quick-zone-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tz-guidance {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.tz-guidance-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tz-guidance-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tz-result-stack {
    display: grid;
    gap: 1rem;
}

.tz-reminder {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-light);
}

.tz-reminder-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tz-reminder-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tz-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 56px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    background: var(--bg-white) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
    padding-left: 1rem !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    right: 12px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.select2-dropdown {
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    margin-top: 4px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    margin: 0.5rem !important;
}

.select2-results__option--highlighted {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Educational Content Styles */
.tz-edu-section {
    margin-top: 2rem;
}

.tz-edu-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.tz-edu-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tz-edu-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tz-edu-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tz-edu-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.tz-edu-card a:hover {
    text-decoration: underline;
}

.infographic-timeline {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.infographic-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.infographic-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.infographic-item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.infographic-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.infographic-item-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tz-sample-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tz-sample {
    background: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    white-space: pre-wrap;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

.tz-review-meta {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tz-review-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.tz-review-meta a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tz-converter-page {
        padding: 1rem 0;
    }

    .tz-main-card {
        padding: 1.5rem;
    }

    .tz-hero {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .tz-layout-grid {
        grid-template-columns: 1fr;
    }

    .tz-pill-row {
        justify-content: flex-start;
    }

    .tz-actions {
        flex-direction: column;
    }

    .tz-btn {
        width: 100%;
    }

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

    .tz-edu-card {
        padding: 2rem 1.5rem;
    }

    .infographic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tz-main-card {
        padding: 1rem;
    }

    .tz-result-card {
        padding: 1.5rem;
    }

    .tz-share-buttons {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
.tz-btn:focus,
.tz-select:focus,
.tz-datetime-input:focus,
.tz-quick-zone-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

