/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f0f0f0;
    background: linear-gradient(135deg, #121224 0%, #1a1a2e 100%);
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Dashboard layout */
.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    backdrop-filter: blur(2px);
    background-color: rgba(15, 15, 25, 0.5);
}

.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header styles */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background-color: rgba(30, 30, 50, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 100, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.logo-button:hover {
    background-color: rgba(70, 70, 120, 0.6);
    transform: scale(1.05);
}

.logo-button img {
    height: 2rem;
    width: auto;
}

/* Search box styles */
.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.search-form {
    width: 100%;
    max-width: 300px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(40, 40, 60, 0.6);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    width: 100%;
    border: 1px solid rgba(80, 80, 120, 0.3);
    transition: all 0.2s ease;
}

.search-box:focus-within {
    background: rgba(50, 50, 80, 0.7);
    border-color: rgba(120, 120, 200, 0.5);
    box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.2);
}

.search-icon {
    color: #b0b0d0;
    margin-right: 0.5rem;
}

.search-input {
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: #8080a0;
}

/* Mobile search container */
.mobile-search-container {
    display: none; /* Hidden by default, shown on mobile */
    width: 100%;
    margin-bottom: 0.5rem;
}

.mobile-search-container .search-form {
    max-width: 100%;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(90deg, #f0f0f0, #a0a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.time-display {
    text-align: right;
}

.time {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f0f0f0;
}

.date {
    font-size: 0.9rem;
    color: #b0b0d0;
}

/* Weather section */
.weather-section {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(30, 30, 50, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.day-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #b0b0d0;
}

.weather-icon {
    font-size: 1.5rem;
    color: #f0f0f0;
}

.temperature {
    font-size: 1.1rem;
    font-weight: 600;
}

/* App buttons grid */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1.25rem;
    padding: 0.5rem;
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background-color: rgba(40, 40, 70, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-btn:hover {
    background-color: rgba(60, 60, 100, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-btn i {
    font-size: 2rem;
    color: #a0a0ff;
}

.btn-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8080a0;
    background-color: rgba(20, 20, 35, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .content-header {
        padding: 0.75rem;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search {
        display: none;
    }
    
    /* Show mobile search container */
    .mobile-search-container {
        display: block;
        padding: 0 0.25rem;
        margin-top: -0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .time-display {
        font-size: 0.9rem;
    }
    
    .time {
        font-size: 1.3rem;
    }
    
    .date {
        font-size: 0.8rem;
    }
    
    .weather-section {
        /* Keep horizontal layout but adjust for smaller screens */
        gap: 0.5rem;
        padding: 0.75rem;
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        justify-content: center; /* Center items horizontally */
        margin: 0 auto;
    }
    
    .weather-day {
        min-width: 60px; /* Ensure minimum width */
        gap: 0.35rem;
    }
    
    .weather-icon {
        font-size: 1.25rem;
    }
    
    .temperature {
        font-size: 0.9rem;
    }
    
    .day-name {
        font-size: 0.8rem;
    }
    
    .dashboard-content {
        grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    }
    
    h1 {
        font-size: 1.2rem;
    }
}

/* Additional optimizations for very small screens */
@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .content-header {
        padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    }
    
    .mobile-search-container {
        margin-top: 0;
        padding: 0;
        margin-bottom: 0.75rem;
    }
    
    .search-box {
        padding: 0.4rem 0.6rem;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .logo-button {
        padding: 0.4rem;
    }
    
    .logo-button img {
        height: 1.75rem;
    }
    
    .time {
        font-size: 1.2rem;
    }
    
    .date {
        font-size: 0.75rem;
    }
    
    .weather-section {
        padding: 0.75rem 0.5rem;
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: center; /* Center items horizontally */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        min-height: 120px; /* Ensure enough height for content */
        text-align: center; /* Ensure text is centered */
    }
    
    .weather-section::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    
    .weather-day {
        min-width: 55px;
        padding: 0.3rem 0.25rem;
        gap: 0.4rem;
        flex: 0 0 auto;
        height: 100%; /* Fill available height */
        justify-content: space-between;
        display: inline-flex; /* Better alignment */
    }
    
    .weather-icon {
        font-size: 1.2rem;
        margin: 0.2rem 0;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    
    .temperature {
        font-size: 0.9rem;
        margin: 0.2rem 0;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
    
    .day-name {
        font-size: 0.8rem;
        margin: 0.2rem 0;
        line-height: 1.2;
        text-align: center;
        width: 100%;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 50, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(80, 80, 120, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 150, 0.6);
} 