/* ==================== PROFESSIONAL SIDEBAR - MOBILE NAVIGATION ==================== */

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 52, 96, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(32, 201, 151, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sidebar.active {
    right: 0;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 1999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
    position: relative;
    z-index: 2;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sidebar-brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    animation: pulse-sidebar-icon 2s infinite;
}

@keyframes pulse-sidebar-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    }
}

.sidebar-brand-icon i {
    font-size: 1.8rem;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.sidebar-brand-text {
    flex: 1;
}

.sidebar-brand-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.sidebar-brand-subtitle {
    font-size: 0.7rem;
    color: rgba(40, 167, 69, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Close Button */
.sidebar-close {
    position: absolute;
    top: 2.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: #FDE9E9;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.sidebar-close:hover {
    background: #FCD3D5;
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.sidebar-close i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Profile Section */
.sidebar-profile {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(40, 167, 69, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFFFFF;
    border: 3px solid rgba(40, 167, 69, 0.3);
    flex-shrink: 0;
}

.sidebar-profile-info {
    flex: 1;
    min-width: 0;
}

.sidebar-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation */
.sidebar-nav {
     background: var(--white);
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: var(--white);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(40, 167, 69, 0.3);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
     background: var(--white);;
}

/* Nav Section */
.sidebar-nav-section {
    margin-bottom: 1.5rem;
}

.sidebar-nav-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Nav Links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: #FDE9E9;
    transition: width 0.3s ease;
    z-index: 1;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    width: 100%;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #EA3B46 0%, #EA3B46 100%);
    transition: height 0.3s ease;
    z-index: 1;
}

.sidebar-link:hover::after,
.sidebar-link.active::after {
    height: 100%;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--primary-color);
}

.sidebar-link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.sidebar-link:hover .sidebar-link-icon {
    transform: scale(1.1);
}

.sidebar-link-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.sidebar-link-badge {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    background:var(--white);
    border-top: 1px solid rgba(40, 167, 69, 0.1);
    position: relative;
    z-index: 2;
}

/* Social Links */
.sidebar-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.sidebar-social-link {
    width: 40px;
    height: 40px;
    background: #FDE9E9;
    border: 1px solid  var(--primary-color);;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-social-link:hover {
    background: #FCD3D5;
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* CTA Button */
.sidebar-cta {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    margin-bottom: 1rem;
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

/* Language Switcher */
.sidebar-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 10px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-lang:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: var(--secondary-color);
}

/* Hamburger Menu (Desktop hidden) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: #FDE9E9;
    border-radius: 10px;
    border: 2px solid  solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1500;
}

.hamburger-menu:hover {
    border-color: var(--white);
    background: var(--primary-color);
    /*border-color: var(--secondary-color);*/
}

.hamburger-menu:hover .hamburger-line{
    background: var(--white);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .sidebar {
        width: 90%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .sidebar {
        /*background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(5, 20, 40, 0.98) 100%);*/
        background: var(--white);
    }
}

/* Print Hide */
@media print {
    .sidebar,
    .sidebar-overlay,
    .hamburger-menu {
        display: none !important;
    }
}
