:root {
    --primary-color: #00b4db;
    --secondary-color: #0083b0;
    --dark-color: #0a192f;
    --light-color: #e6f1ff;
    --success-color: #00ff9d;
    --error-color: #ff3d71;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--light-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
}

.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color) 0%, #0a1a3a 100%);
}

.main-app {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 5;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.app-title span {
    color: var(--light-color);
}

.datetime {
    margin-left: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(0, 180, 219, 0.1);
    color: var(--primary-color);
}

.app-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--light-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 180, 219, 0.2);
}

.search-box button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.05);
}

.current-weather {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weather-location h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.weather-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.weather-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.weather-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.weather-temp {
    flex: 1;
}

.current-temp {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.weather-desc {
    font-size: 1rem;
    opacity: 0.9;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 180, 219, 0.1);
    border-radius: 8px;
}

.detail-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hourly-forecast h3,
.daily-forecast h3 {
    margin-bottom: 1rem;
}

.hourly-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hour-item {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 180, 219, 0.1);
    border-radius: 8px;
}

.hour-time {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.hour-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.hour-temp {
    font-weight: 500;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 180, 219, 0.1);
    border-radius: 8px;
}

.day-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.day-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.day-temp {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.day-desc {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    display: flex;
    gap: 0.5rem;
}

.spinner-circle {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1);
    }
}

.loading-text {
    color: var(--light-color);
    font-size: 1.1rem;
}

.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--error-color);
    color: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background: var(--success-color);
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
    }
    
    .datetime {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}