/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #343a40;
    color: #ffffff;
}

.header .logo {
    font-weight: bold;
    font-size: 20px;
}

.header h5 {
    margin: 0;
    font-size: 18px;
}

.header .btn {
    background-color: #007bff;
    border: none;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
    z-index: 8;
}

.sidebar h4 {
    text-align: center;
    margin: 0;
    padding: 15px 0;
    font-size: 20px;
    color: #343a40;
    border-bottom: 1px solid #ddd;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid #ddd;
}

.sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #343a40;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
}

.sidebar ul li a:hover,
.sidebar ul li .active {
    background-color: #007bff;
    color: #ffffff;
}

.sidebar ul li a.text-danger {
    color: #dc3545;
}

.sidebar ul li a.text-danger:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    
}

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.card-text {
    font-size: 24px;
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        height: 100%;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-icon {
        display: inline-block;
        font-size: 24px;
        cursor: pointer;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .card-text {
        font-size: 20px;
    }

    .card-title {
        font-size: 14px;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .header h5 {
        font-size: 14px;
    }

    .header .btn {
        font-size: 12px;
    }

    .card-text {
        font-size: 18px;
    }
}
