/* assets/css/style.css */

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff0080;
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-nav {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(to right, #f8cdda, #1d2671); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: -webkit-linear-gradient(to right, #fff, #a2a2a2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(to right, #ff00cc, #333399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    background: #ff0080;
    top: -50px;
    left: -50px;
    opacity: 0.5;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: #2575fc;
    bottom: -100px;
    right: -100px;
    opacity: 0.5;
}

/* Features */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

/* Admin Specific */
.admin-body {
    background: #1a1a2e;
}

.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background: rgba(18, 25, 40, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden; /* Prevent container scroll */
}

.sidebar nav {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Custom Scrollbar for sidebar nav */
.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed + .main-content {
    margin-left: 80px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

.sidebar-link {
    color: #a8b0bf;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin: 2px 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: var(--secondary-color);
}

.sidebar-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.sidebar.collapsed .sidebar-link {
    text-align: center;
    padding: 12px 0;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}

.link-text {
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .link-text {
    opacity: 0;
    display: none;
}

.sidebar-sublink {
    color: #b8c1d1;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin: 2px 8px;
    padding-left: 48px;
    font-size: 0.95rem;
}

.sidebar-sublink:hover, .sidebar-sublink.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-left-color: var(--secondary-color);
}

.sidebar.collapsed .sidebar-sublink {
    padding-left: 0;
    text-align: center;
}

.rotate-icon {
    transition: transform 0.2s ease;
}

.rotate-icon.open {
    transform: rotate(90deg);
}

/* Removed old scrollbar styles as they are now specific to nav */

.stat-card {
    transition: transform 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
}
