/* assets/css/style.css */

:root {
    --bg-color: #0d0d12;
    --text-color: #e0e0e0;
    --primary-color: #7b2cbf;
    /* Deep Purple */
    --secondary-color: #00b4d8;
    /* Cyan */
    --accent-color: #ef476f;
    /* Pinkish Red */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --card-radius: 16px;
    --font-family: 'Inter', sans-serif;
    --sidebar-width: 250px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(123, 44, 191, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.15) 0%, transparent 40%);
    min-height: 100vh;
}



/* Webkit Scrollbar Hiding */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    /* Optional: just make scrollbar invisible */
}

* {
    box-sizing: border-box;
}

/* Layout Containers */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    transition: margin-left 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(18, 18, 24, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 25px;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    /* overflow: hidden; Removed to allow dropdowns if needed later, though hidden is fine too */
}


.sidebar nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    /* Revert padding */
    scrollbar-width: none;
}




/* Mobile Sidebar Logic */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 280px;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        background: rgba(18, 18, 24, 0.98);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    }

    .main-content {
        padding: 15px;
    }

    /* Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(3px);
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 800;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-content {
        padding-top: 80px;
    }
}

/* Navigation Links */
.nav-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    margin: 20px 0 10px 10px;
    font-weight: 700;
    letter-spacing: 1px;
}


.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s;
}


.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-link:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.15) 0%, transparent 100%);
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 12px 12px 0;
    /* Only curve right side */
}

/* Special Links */
.highlight-link {
    color: white;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.highlight-link:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.ai-link {
    color: #bfaee3 !important;
}

.ai-link:hover {
    color: #fff !important;
    background: rgba(123, 44, 191, 0.3) !important;
}

.logout-link {
    color: #ef476f !important;
    margin-top: 10px;
}

.logout-link:hover {
    background: rgba(239, 71, 111, 0.15) !important;
    color: #ff8fa3 !important;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.user-info {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}


.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), #2d00f7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Utility Classes (Restored) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5a189a);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #aaa;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

option {
    color: black;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.brand-title {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}