/* SIDEBAR LAYOUT CSS - User specifically wants sidebar, not header */

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d4af37;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    color: #f1e068;
    transform: translateX(5px);
}

.sidebar-brand i {
    font-size: 24px;
}

.brand-text {
    white-space: nowrap;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    margin: 2px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.nav-link.active {
    color: #1a1a2e;
    background: linear-gradient(135deg, #d4af37 0%, #f1e068 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-link.active:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-link span {
    white-space: nowrap;
    font-size: 14px;
}

/* Navigation Divider */
.nav-divider {
    margin: 20px 0 10px;
    padding: 0 35px;
}

.nav-divider small {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #f8fafc;
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    padding: 30px;
}

.content-body {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.page-subtitle {
    color: #718096;
    margin: 8px 0 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-link span {
        display: inline;
    }
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Logout Button Special Styling */
.nav-link.logout-btn {
    margin-top: auto;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.nav-link.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Animation enhancements */
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #d4af37;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.nav-link.active::before {
    transform: scaleY(1);
}

/* Content Transitions */
.content-body {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}