﻿/* Layout Styles */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    padding: 20px;
}

    .main-content.expanded {
        margin-left: 0;
    }

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: white;
    border-right: 1px solid #dee2e6;
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 60px; /* Account for navbar height */
    box-shadow:inherit;
}

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

.sidebar-user-info {
    padding: 20px 15px;
    border-bottom: 1px solid #dee2e6;
    background: white;
}

.user-avatar-container {
    text-align: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-details {
    text-align: center;
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Navbar Styles */
.top-navbar {
    /*    background: linear-gradient(135deg, #ef2f42 0%, #764ba2 100%) !important;*/
    background: linear-gradient(135deg, #69a4d9 0%, #2c6bb2 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.user-info-sm {
    line-height: 1.2;
}

.user-name-sm {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-role-sm {
    font-size: 0.75rem;
    opacity: 0.8;
}

.user-avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar-brand {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-heading {
    padding: 0 15px 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .sidebar-item:hover {
        background-color: #e9ecef;
        color: #495057;
        border-left-color: #667eea;
    }

    .sidebar-item.active {
        background-color: #e3f2fd;
        color: #1976d2;
        border-left-color: #1976d2;
        font-weight: 500;
    }

    .sidebar-item i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

.logout-btn {
    color: #dc3545 !important;
}

    .logout-btn:hover {
        background-color: #f8d7da !important;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .user-info-sm {
        display: none;
    }
}
