/* World Time Zone - Integrated Theme Logic */
.tools-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
}

.tool-column {
    display: flex;
    flex-direction: column;
}

.panel.compact-panel {
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--panel-border);
}

.current-user-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mini-clock {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mini-offset {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Consolas', monospace;
    font-weight: 500;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

#citySearch {
    width: 100%;
    padding: 0.8rem 0.75rem 0.8rem 2.6rem;
    font-size: 1rem;
    background: transparent;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text-color);
}

.search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(15px);
}

.search-result-item {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-color);
}

.search-result-item:hover {
    background: var(--hover-bg);
}

.timezone-select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-color);
}

.preview-box {
    background: var(--hover-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.analog-clocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.analog-clock-card {
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.analog-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.clock-face {
    width: 90px;
    height: 90px;
    border: 3px solid var(--panel-border);
    border-radius: 50%;
    position: relative;
    margin-bottom: 1rem;
}

.clock-face::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-number {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 0.05s;
}

.hand.hour {
    width: 4px;
    height: 26%;
    background: var(--text-color);
}

.hand.minute {
    width: 3px;
    height: 38%;
    background: var(--text-muted);
    opacity: 0.8;
}

.hand.second {
    width: 2px;
    height: 42%;
    background: var(--accent-color);
}

.ac-info-group {
    text-align: center;
}

.ac-city {
    font-weight: 600;
    font-size: 0.9rem;
}

.ac-offset {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.ac-diff {
    font-size: 0.7rem;
    background: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--accent-color);
    margin: 4px 0;
    display: inline-block;
}

.ac-time {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.ac-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 500px;
    overflow-y: auto;
}

.timeline-row {
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: center;
}

.info-col {
    border-right: 1px solid var(--panel-border);
}

.info-city {
    font-weight: 600;
    font-size: 0.9rem;
}

.info-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.info-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.hours-strip {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 5px;
}

.hour-block {
    flex: 0 0 32px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--hover-bg);
    color: var(--text-muted);
}

.hour-block.active-hour {
    background: var(--accent-color);
    color: white;
}

.hour-block.day-hour {
    background: var(--hover-bg);
    color: var(--text-color);
}

.hour-block.night-hour {
    opacity: 0.5;
}

.big-input {
    width: 100%;
    border: 1px solid var(--panel-border);
    background: transparent;
    color: var(--text-color);
    border-radius: 12px;
    padding: 0.8rem;
    font-family: monospace;
}

.res-time {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.dense-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 850px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .analog-clocks-grid {
        grid-template-columns: 1fr;
    }

    .timeline-row {
        grid-template-columns: 120px 1fr;
    }
}