/* Navbar Fix */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Profile image */
.navbar-nav .dropdown img {
    border: 2px solid white;
}

/* Profile Dropdown Overlap on Mobile */
@media (max-width: 992px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar-collapse {
        background-color: #343a40;
        padding: 10px;
    }

    /* Moving profile below navbar in mobile */
    .profile-dropdown {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Center profile dropdown */
    .profile-dropdown .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Align dropdown on mobile */
    .navbar-nav .dropdown-menu {
        width: 200px;
        position: absolute !important;
        margin-top: 10px;
        right: 50% !important;
        transform: translateX(50%);
        text-align: left;
    }
}


/* General styles */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dashboard cards */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Stats cards on dashboard */
.card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Chart containers */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
}

/* Card headers */
.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.125);
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Table styles */
.table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badge styles */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 30px;
}

/* Main content padding */
.main-content {
    padding-bottom: 50px;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .card h3 {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .main-content {
        padding: 15px !important;
        margin: 10px !important;
    }
}

/* Make sure charts are responsive */
canvas {
    max-width: 100%;
}

/* Add some animation to dashboard stats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.row.g-4 .card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.row.g-4 .card:nth-child(1) {
    animation-delay: 0.1s;
}

.row.g-4 .card:nth-child(2) {
    animation-delay: 0.2s;
}

.row.g-4 .card:nth-child(3) {
    animation-delay: 0.3s;
}

.row.g-4 .card:nth-child(4) {
    animation-delay: 0.4s;
}
.card-body {
    height: 300px;
  }
