/* Main layout */
.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 250px;
    background: #343a40;
    color: white;
    min-height: 100vh;
    transition: all 0.3s;
    position: fixed;
    z-index: 1;
}

.sidebar-brand {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 0;
}

.sidebar-nav .nav-item {
    width: 100%;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    display: block;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #4e73df;
}

.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #4e73df;
}

.sidebar-nav .nav-link i {
    margin-right: 0.5rem;
}

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    .main {
        width: 100%;
        margin-left: 0;
    }
    .sidebar.active {
        margin-left: 0;
    }
}

/* Footer Settings */
html, body {
    height: 100%;
    margin: 0;
}

/* Make the main content area take up available space */
.main-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer at the bottom of the page */
.main-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    background-color: #f8f9fa; /* Adjust the background color as needed */
    padding: 20px 0; /* Adjust padding as needed */
    text-align: center;
    border-top: 1px solid #ddd; /* Optional border for style */
}

/* Footer Section Styling */
.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #007bff; /* Change the link color as needed */
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

/* Footer Settings */
html, body {
    height: 100%;
    margin: 0;
}

/* Make the main content area take up available space */
.main-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer at the bottom of the page */
.main-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    background-color: #f8f9fa; /* Adjust the background color as needed */
    padding: 20px 0; /* Adjust padding as needed */
    text-align: center;
    border-top: 1px solid #ddd; /* Optional border for style */
}

/* Footer Section Styling */
.footer-content {
    display: flex; /* Use flexbox to align sections in a row */
    justify-content: space-between; /* Distribute sections evenly */
    flex-wrap: wrap; /* Allow sections to wrap on smaller screens */
    gap: 20px; /* Adjust the gap between sections */
}

.footer-section {
    flex: 1; /* Allow each section to take equal space */
    min-width: 200px; /* Ensure each section has a minimum width */
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #007bff; /* Change the link color as needed */
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

/* Ensure footer sections are stacked vertically on smaller screens */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Stack sections vertically on smaller screens */
        align-items: center;
    }

    .footer-section {
        min-width: auto; /* Remove minimum width on smaller screens */
        text-align: center; /* Center the text in each section */
    }
}

.sidebar {
    transition: all 0.3s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: #343a40; /* Slightly lighter than bg-dark */
    color: #ffc107 !important; /* Bootstrap's yellow for visibility */
    border-radius: 4px;
}
.sidebar-link {
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover {
    background-color: #495057;
    color: #fff !important;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.modal-body canvas {
    width: 100% !important;
    height: 400px !important;
}