/* 
  Theme: Gen Z Premium / Glassmorphism 
  Font: Outfit (Google Fonts)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-gradient: linear-gradient(135deg, #f6f8fd 0%, #f1f4f9 100%);
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --accent-pink: #fd79a8;
    --accent-mint: #00b894;
    --accent-yellow: #ffeaa7;

    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-white: #ffffff;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(12px);

    /* Neomorphism / Card Styles */
    --card-bg: #ffffff;
    --card-radius: 20px;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Background Blobs for specific premium vibe */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
}

.blob-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
}

.blob-3 {
    bottom: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: var(--accent-yellow);
    opacity: 0.4;
}

/* Layout Structure */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(0px);
    /* Fix for z-index context */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.logo-area {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--text-main));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 18px;
    opacity: 0.7;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    padding: 14px 18px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-item:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.nav-item i {
    font-size: 1.2rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.top-bar {
    height: var(--header-height);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.2s;
}

.user-profile:hover {
    transform: translateY(-2px);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Content View Area */
.view-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 2.5rem 2.5rem 2.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility / Component Classes */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.15);
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: #5649c0;
    transform: translateY(-2px);
}

/* Dashboard Specifics */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Icons */
.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48
}

/* Calendar Grid Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #eee;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.calendar-header {
    background: var(--primary-light);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.calendar-day {
    background: white;
    min-height: 80px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-day.today {
    background: rgba(108, 92, 231, 0.05);
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-day.today .day-number {
    color: var(--primary-color);
}

.calendar-event {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.calendar-event.holiday {
    background: var(--accent-pink);
}