/* ==================== LEFT SIDEBAR NAVIGATION ==================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.sidebar-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 83, 9, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(180, 83, 9, 0.2);
}

.sidebar-toggle svg {
    transition: transform var(--transition-fast);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.nav-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-footer .nav-item {
    background: rgba(37, 211, 102, 0.1);
    color: var(--success);
}

.sidebar-footer .nav-item:hover {
    background: rgba(37, 211, 102, 0.2);
}

/* ==================== EXPANDED STATE ==================== */
.sidebar.expanded {
    width: var(--sidebar-expanded);
}

.sidebar.expanded .sidebar-logo span,
.sidebar.expanded .nav-text {
    opacity: 1;
}

.sidebar.expanded .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar.expanded .nav-item {
    justify-content: flex-start;
}

.sidebar.expanded .sidebar-toggle {
    margin-left: auto;
}

/* ==================== TOOLTIP ==================== */
.nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 14px;
    background: rgba(44, 36, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.nav-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 8px);
}

/* Hide tooltips when sidebar is expanded */
.sidebar.expanded .nav-item[data-tooltip]::after {
    display: none;
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 16px;
    z-index: 1000;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: 8px 0;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.bottom-nav-item.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
}

.bottom-nav-item.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

.bottom-nav-item.whatsapp {
    color: var(--success);
}

.bottom-nav-item.whatsapp svg {
    width: 28px;
    height: 28px;
}

/* ==================== SCROLLBAR ==================== */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(180, 83, 9, 0.3);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 83, 9, 0.5);
}
