/* ========== PROFESSIONAL TIMEZONE SYSTEM (V10) ========== */
/* Resaved: 2026-02-13 force update */
/* Fully integrated with global variables */

.timezone-selector-wrapper {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: var(--z-sticky);
    isolation: isolate;
}

.timezone-indicator {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    min-height: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
}

.timezone-indicator:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.timezone-indicator svg {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-elastic);
    color: var(--accent);
}

.timezone-indicator:hover svg {
    transform: rotate(15deg);
}

.timezone-indicator span {
    font-weight: 600;
    white-space: nowrap;
}

/* Dropdown Panel */
.timezone-selector {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 4px;
    /* Align with dropdown animation */
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s var(--ease-out);
    z-index: var(--z-dropdown);
}

.timezone-selector.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Select Styling */
.timezone-selector select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    /* Space for arrow */
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

.timezone-selector select:hover {
    border-color: var(--text-secondary);
}

.timezone-selector select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.timezone-selector select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 10px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .timezone-selector-wrapper {
        position: static;
        margin: 0 auto 20px;
        width: 100%;
        max-width: 340px;
    }

    .timezone-indicator {
        width: 100%;
        justify-content: center;
    }

    .timezone-selector {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 8px;
    }
}