.timezone-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.timezone-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.back-link {
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.timezone-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
}

.controls-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-group {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.date-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-control label {
    color: #ffffff;
    font-weight: bold;
}

.timezone-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.timezone-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.timezone-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
}

.date-picker {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.date-picker:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
}

.add-btn {
    padding: 0.8rem 1.5rem;
    background: #ff6b6b;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.reset-time-btn {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-time-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ff6b6b;
}

.timezones-display {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.timezone-row {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    display: flex;
    position: relative;
}

.timezone-row:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.timezone-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.timezone-label {
    min-width: 180px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    left: 0;
    z-index: 10;
}

.timezone-name {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timezone-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.remove-timezone {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 107, 107, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 11;
}

.remove-timezone:hover {
    opacity: 1;
    transform: scale(1.1);
}

.timezone-hours {
    display: flex;
    overflow-x: auto;
    flex: 1;
}

.hour-block {
    min-width: 60px;
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.hour-block:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hour-block.current-hour {
    background: rgba(255, 107, 107, 0.3) !important;
    border-left: 2px solid #ff6b6b !important;
    border-right: 2px solid #ff6b6b !important;
}

.hour-block.selected-hour {
    background: rgba(107, 255, 107, 0.5) !important;
    border-left: 3px solid #4cff4c !important;
    border-right: 3px solid #4cff4c !important;
    border-top: 2px solid #4cff4c !important;
    border-bottom: 2px solid #4cff4c !important;
    box-shadow: 0 0 8px rgba(76, 255, 76, 0.4) !important;
}

.hour-block {
    cursor: pointer;
    position: relative;
}

.hour-block:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.hour-number {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.hour-period {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.hour-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.info-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    color: #ffffff;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timezone-container {
        padding: 1rem;
    }
    
    .timezone-header h1 {
        font-size: 2rem;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        flex-direction: column;
        min-width: 100%;
    }
    
    .timezone-label {
        min-width: 120px;
    }
    
    .hour-block {
        min-width: 50px;
        padding: 0.8rem 0.3rem;
    }
}

/* Scrollbar styling for timezone hours */
.timezone-hours::-webkit-scrollbar {
    height: 8px;
}

.timezone-hours::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.timezone-hours::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.6);
    border-radius: 4px;
}

.timezone-hours::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}
