/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-color: #4F46E5;
    --primary-light: #818CF8;
    --hover-color: #4338CA;
    --bg-color: #FAFAFA;
    --text-color: #1F2937;
    --text-secondary: #6B7280;
    --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0px 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0px 8px 32px rgba(0, 0, 0, 0.12);
    
    --h1-size: clamp(2rem, 4vw, 2.5rem);
    --h4-size: clamp(1.2rem, 3vw, 1.5rem);
    --body-size: clamp(0.875rem, 2vw, 1rem);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern sidebar styling */
.sidenav {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    padding-top: 0.25rem;
    width: clamp(280px, 30vw, 380px) !important;
    box-shadow: var(--shadow-lg);
    border-radius: 0 24px 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh !important;
    min-height: 100vh !important;
}

.sidenav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.1rem 1.25rem;
    margin-bottom: 0.25rem;
}

.sidenav .brand-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--h4-size);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
}

.sidenav .divider {
    margin: 0.15rem 1.5rem;
    opacity: 0.08;
}

.sidenav a {
    color: var(--text-color) !important;
    display: flex !important;
    align-items: center;
    margin: 0.1rem 0.75rem;
    padding: 0.25rem 1rem !important;
    height: auto !important;
    font-size: var(--body-size);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.sidenav a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.sidenav a:hover {
    background-color: rgba(79, 70, 229, 0.08) !important;
    transform: translateX(4px);
}

/* Modern floating button */
.menu-btn {
    position: fixed !important;
    top: 1.5rem;
    left: 1.5rem;
    height: 48px !important;
    width: 48px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    opacity: 0.85;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 997;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.menu-btn i {
    font-size: 24px;
    line-height: 1;
}

.sidenav-close {
    padding: 0.5rem !important;
    color: var(--text-secondary) !important;
    height: 40px !important;
    width: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sidenav-close:hover {
    background-color: rgba(79, 70, 229, 0.08) !important;
    color: var(--primary-color) !important;
}

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 60vw, 600px);
    height: clamp(300px, 60vw, 600px);
    background-image: url(../img/logo_transparent.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    opacity: 0.6;
    filter: saturate(0.8) contrast(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidenav {
        width: 90vw !important;
    }
    
    .menu-btn {
        top: 1rem;
        left: 1rem;
    }
    
    .background-logo {
        width: clamp(200px, 70vw, 400px);
        height: clamp(200px, 70vw, 400px);
    }
}

/* Add smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Glass effect for sidebar on larger screens */
@media (min-width: 769px) {
    .sidenav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Remove the previous .sidenav::after rule and add this instead */
.sidenav-copyright {
    margin-top: auto;
    width: 100%;
    padding: 1rem;
    font-size: 0.75rem;
    color: #000000;
    font-weight: 600;
    opacity: 0.2;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    z-index: 999;
} 