/* Google Fonts will be loaded in header.php */

/* General body and typography */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* Sidebar styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1040;
}

/* Sidebar Profile Section */
.sidebar-profile {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    color: #ecf0f1;
    font-size: 1.5rem;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-details h6 {
    color: #ecf0f1;
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-details small {
    color: #95a5a6;
    font-size: 0.8rem;
}

.sidebar .navbar-brand {
    color: #ecf0f1;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar .navbar-brand:hover {
    color: #3498db;
}

.sidebar a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 15px 24px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 2px 0;
    position: relative;
}

.sidebar a i {
    display: inline-block;
    width: 20px;
    margin-right: 12px;
    text-align: center;
    line-height: 1;
}

.sidebar a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-left-color: #3498db;
    padding-left: 28px;
}

.sidebar .active {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
    border-left-color: #2980b9;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.sidebar .active:hover {
    background-color: #2980b9;
    color: #ffffff;
    padding-left: 24px;
}

.sidebar hr {
    border-color: rgba(255,255,255,0.1);
    margin: 1rem 1.5rem;
}

/* Navbar styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover, 
.navbar .nav-link:focus {
    color: #2980b9;
}

.navbar .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar .dropdown-item:hover, 
.navbar .dropdown-item:focus {
    background-color: #2980b9;
    color: #fff;
}

/* Content area */
.content {
    padding: 30px;
    margin-left: 250px; /* Width of expanded sidebar */
    width: calc(100% - 250px);
    transition: all 0.3s ease;
}

/* Content expanded state */
.content.expanded {
    margin-left: 60px;
    width: calc(100% - 60px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2980b9, #3498db);
    border: none;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Login page specific */
.login-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
    margin-top: 10vh;
    margin-bottom: 10vh;
    max-width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

.form-control:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

/* Dashboard page styles */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Card alignment fix */
.row.mb-4 {
    margin-right: 0;
    margin-left: 0;
}

.row.mb-4 .col-xl-3 {
    padding: 0 10px;
}

.row.mb-4 .card {
    min-height: 100px;
    margin-bottom: 20px;
}

.card-body {
    padding: 1.25rem;
}

.card-body .row.no-gutters {
    display: flex;
    align-items: center;
}

.card-body .col-auto {
    padding-left: 15px;
}

/* Sidebar collapsed state */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 60px;
    overflow: hidden;
}

.sidebar.collapsed .profile-info {
    justify-content: center;
}

.sidebar.collapsed .profile-details {
    display: none;
}

.sidebar.collapsed .profile-avatar {
    margin: 0;
}

.sidebar.collapsed .navbar-brand {
    text-align: center;
    padding: 1rem 0;
}

.sidebar.collapsed a {
    text-align: center;
    padding: 15px 0;
}

.sidebar.collapsed .navbar-brand i,
.sidebar.collapsed a i {
    margin: 0;
    width: 60px;
    display: inline-block;
    text-align: center;
    position: relative;
    left: 0;
}

.sidebar a span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.collapsed a span {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed hr {
    margin: 1rem 0.5rem;
}

/* Sidebar toggle button */
#sidebarToggle {
    margin-right: 1rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
}

#sidebarToggle:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.show {
        left: 0;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    }
    
    .content {
        margin-left: 0 !important;
        width: 100% !important;
        transition: none;
    }
    
    .content.expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Overlay when sidebar is shown on mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 1039;
        transition: all 0.3s ease;
    }
    
}


