body {
    min-height: 100vh;
}
  

/* Statistics Card Styles */
.stat-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.stat-card h4 {
    font-weight: 700;
    color: #2c3e50;
}
.stat-card h6 {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
#content {
     
    padding: 20px;
    flex-grow: 1;
}
#main-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
     
}
 #footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    #content, #main-header, #footer {
        margin-left: 0;
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    }
    
    .stat-card {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .stat-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-card h6 {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .card-header h5 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    /* Adjust layout for mobile */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .col-md-6, .col-md-3, .col-md-9 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Make sure tables are scrollable */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }
}

/* Additional styles for very small devices */
@media (max-width: 360px) {
    .stat-card h4 {
        font-size: 1rem;
    }
    
    .stat-card h6 {
        font-size: 0.65rem;
    }
    
    .card-header h5 {
        font-size: 0.8rem;
    }
}