/* ==================================================
   Premium Sidebar Styles (Dark & Modern)
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #040b14;
    /* Matches the dark theme */
    color: #fff;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: rgba(4, 11, 20, 0.95);
    /* Slight transparency */
    backdrop-filter: blur(15px);
    /* Glassmorphism blur */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    padding: 0 15px;
    transition: all ease-in-out 0.4s;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4);
}

/* --- Profile Section --- */
.profile {
    padding-top: 40px;
    text-align: center;
}

.profile-img-wrapper {
    margin: 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Modern circle shape */
    background: linear-gradient(135deg, #149ddd, #00d2ff);
    padding: 3px;
    /* Gradient border thickness */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(20, 157, 221, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 157, 221, 0.4);
}

.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures logo covers the circle */
    border-radius: 50%;
    /* Inner radius */
    background-color: #0a192f;
}

.profile .name {
    margin: 20px 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.profile .name a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #fff, #a8b2c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

/* --- Social Links --- */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8b2c1;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #149ddd, #00d2ff);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(20, 157, 221, 0.4);
    border-color: transparent;
}

/* --- Navigation Menu --- */
.nav-menu {
    padding: 40px 0 0 0;
    flex-grow: 1;
}

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

.nav-menu ul li {
    margin-bottom: 12px;
    position: relative;
}

.nav-menu ul li a {
    display: flex;
    align-items: center;
    color: #a8b2c1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-menu ul li a i {
    font-size: 20px;
    margin-right: 15px;
    color: #a8b2c1;
    width: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Active and Hover states */
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    background: rgba(20, 157, 221, 0.1);
    color: #fff;
    transform: translateX(6px);
}

.nav-menu ul li a:hover i,
.nav-menu ul li a.active i {
    color: #00d2ff;
}

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

.sidebar::-webkit-scrollbar-track {
    background: #040b14;
}

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 157, 221, 0.6);
}

/* ==================================================
   Responsive Design
   ================================================== */

/* Mobile Navigation Toggle Button Style */
.mobile-nav-toggle {
    position: fixed;
    right: 25px;
    top: 25px;
    z-index: 9998;
    border: 0;
    transition: all 0.4s ease;
    outline: none !important;
    background: linear-gradient(135deg, #149ddd, #00d2ff);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    /* Hidden on large screens */
    box-shadow: 0 4px 15px rgba(20, 157, 221, 0.4);
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle i {
    color: #fff;
    font-size: 24px;
    margin: 0;
    padding: 0;
}

.mobile-nav-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .sidebar {
        left: -300px;
    }

    .mobile-nav-active .sidebar {
        left: 0;
    }

    .mobile-nav-active::before {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(4, 11, 20, 0.85);
        backdrop-filter: blur(5px);
        z-index: 9996;
        transition: all 0.4s ease;
    }
}

@media (min-width: 992px) {
    body {
        padding-left: 300px;
    }
}