/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Glassmorphism Effect */
.glass-sidebar,
.glass-card,
.dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 10px;
}

/* Wrapper & Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: #fff; /* solid white for clarity */
    color: #222;
    transition: var(--transition);
    position: relative;
    z-index: 1000;
    padding: 20px 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.03);
}

#sidebar.active {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.sidebar-header h3 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 5px 0 0;
}

 
#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    color: #222;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a,
#sidebar ul li a[aria-expanded="true"] {
    color: #00796b;
    background: #e0f7fa;
    border-left: 3px solid #00bfae;
    font-weight: bold;
}

#sidebar ul li a i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #00796b;
}

/* Dropdown Menu */
#sidebar ul ul a {
    font-size: 0.85rem !important;
    padding-left: 60px !important;
    background: rgba(0, 0, 0, 0.1);
}

/* Content Area */
#content {
    width: 100%;
    min-height: 100vh;
    transition: var(--transition);
    padding: 20px;
    background: transparent;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff !important;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: none;
}

.navbar .btn, .navbar .dropdown-toggle {
    color: #222;
    background: #e0f7fa;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    transition: var(--transition);
}

.navbar .btn:hover, .navbar .dropdown-toggle:hover {
    background: #00bfae;
    color: #fff;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.15);
}

.dropdown-item {
    padding: 8px 20px;
    color: #1e293b;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(31, 38, 135, 0.15);
}

/* Stats Cards */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Activity List */
.activity-list {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.activity-content h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.activity-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Stats */
.quick-stats .stat-item {
    margin-bottom: 20px;
}

.quick-stats .stat-item:last-child {
    margin-bottom: 0;
}

.quick-stats .progress {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
}

.quick-stats .progress-bar {
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        height: 100vh;
        z-index: 1000;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
    }
    
    #content.active {
        margin-left: var(--sidebar-width);
    }
    
    .glass-card {
        margin-bottom: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    animation: fadeIn 0.5s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Main content area */
body, .wrapper, #content {
    background: #f8fafc;
    color: #222;
}

/* Brand color for highlights and buttons */
.btn-register, .btn-verify, .btn-primary {
    background: linear-gradient(45deg, #00bfae, #00796b);
    color: #fff;
    border: none;
}
.btn-register:hover, .btn-verify:hover, .btn-primary:hover {
    background: linear-gradient(45deg, #00796b, #00bfae);
    color: #fff;
}

/* Card and stat backgrounds */
.glass-card, .quick-stats, .stat-item {
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e0e0e0;
}

/* Make all text readable */
.activity-content h6, .activity-content p, .stat-item span, .stat-item strong {
    color: #222;
}

/* Remove glassmorphism for clarity */
.glass-sidebar, .glass-card, .dropdown-menu {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
