.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.session-active {
    background-color: #28a745 !important;
    color: white !important;
}

.session-inactive {
    background-color: #dc3545 !important;
    color: white !important;
}

.attendance-present {
    background-color: #28a745; /* green */
    color: white;
}

.attendance-late {
    background-color: #ffc107; /* yellow */
    color: #212529; /* dark text for better contrast */
}

.attendance-absent {
    background-color: #dc3545; /* red */
    color: white;
}

.text-center-align {
    text-align: center;
}

/* Header Strip Styling */
.main-header, .navbar {
    background-color: #FFA400 !important;
}

/* Professional Sidebar Styling */
.app-sidebar {
    background-color: #E43636; /* Red background as requested */
    color: #ffffff !important; /* White text color for the entire sidebar */
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 10px;
    display: flex;
    align-items: center;
}

.sidebar-brand .brand-link {
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-brand .brand-image {
    margin-right: 10px;
    width: 35px; /* Adjust size as needed */
    height: 35px;
    object-fit: contain;
}

.sidebar-brand .brand-text {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #ffffff !important;
}

.sidebar-wrapper .nav-header {
    color: #ffffff !important; /* White for headers */
    padding: 15px 10px 5px 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-wrapper .nav-item .nav-link {
    color: #ffffff !important; /* Default link color to white */
    padding: 12px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-wrapper .nav-item .nav-link:hover {
    background-color: #F04C4C; /* Lighter red on hover */
    color: #ffffff !important; /* White text on hover */
}

.sidebar-wrapper .nav-item .nav-link.active {
    background-color: #C02F2F; /* Darker red for active link */
    color: #ffffff; /* White text for active link */
    border-left: 3px solid #A02828; /* Highlight for active link */
}

.sidebar-wrapper .nav-item .nav-link .nav-icon {
    color: #ffffff; /* Default icon color */
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-wrapper .nav-item .nav-link:hover .nav-icon {
    color: #ffffff; /* White icon on hover */
    transform: scale(1.1); /* Slight scale animation */
}

.sidebar-wrapper .nav-item .nav-link.active .nav-icon {
    color: #ffffff; /* White icon for active link */
}

/* Treeview (dropdown) specific styles */
.sidebar-wrapper .nav-treeview .nav-item .nav-link {
    padding-left: 35px; /* Indent sub-items */
    color: #ffffff !important; /* White color for sub-items */
}

.sidebar-wrapper .nav-treeview .nav-item .nav-link:hover {
    background-color: #34495e;
    color: #ffffff;
}

.sidebar-wrapper .nav-treeview .nav-item .nav-link.active {
    background-color: #3498db;
    color: #ffffff;
}

.sidebar-wrapper .nav-treeview .nav-item .nav-link .nav-icon {
    font-size: 0.8rem; /* Smaller icon for sub-items */
    color: #ffffff !important; /* White icon for sub-items */
}

.sidebar-wrapper .nav-treeview .nav-item .nav-link:hover .nav-icon {
    color: #ffffff;
}

/* Dropdown for "Select Session" */
.sidebar-wrapper .dropdown .dropdown-toggle {
    color: #ffffff !important; /* White for dropdown toggle */
    padding: 12px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%; /* Ensure it takes full width */
    text-align: left;
}

.sidebar-wrapper .dropdown .dropdown-toggle:hover {
    background-color: #F04C4C;
    color: #ffffff !important;
}

.sidebar-wrapper .dropdown .dropdown-toggle .nav-icon {
    color: #ffffff !important; /* White for dropdown toggle icon */
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-wrapper .dropdown .dropdown-toggle:hover .nav-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.sidebar-wrapper .dropdown-menu {
    background-color: #C02F2F; /* Darker red background for dropdown menu */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-wrapper .dropdown-item {
    color: #ffffff !important; /* White for dropdown items */
    transition: all 0.3s ease;
}

.sidebar-wrapper .dropdown-item:hover {
    background-color: #F04C4C; /* Lighter red on hover for dropdown items */
    color: #ffffff;
}

.sidebar-wrapper .dropdown-item.disabled {
    color: #7f8c8d;
}

/* Adjustments for AdminLTE's default active state if it conflicts */
.app-sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: #C02F2F !important;
}

/* User Menu Dropdown Adjustments */
.user-menu .dropdown-menu {
    min-width: 250px !important; /* Further increased width for better visibility and added !important */
    max-height: 300px; /* Set a max-height to allow scrolling if content is too long */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
    left: auto !important; /* Override default left alignment */
    right: 0 !important; /* Align to the right edge of the parent */
}

.user-menu .user-footer .btn-flat {
    width: 100%; /* Make the logout button take full width */
    text-align: left; /* Align text to the left within the button */
}

.user-menu .user-footer {
    padding: 10px; /* Add some padding to the footer */
}

.app-sidebar .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* Footer Strip Styling */
.app-footer {
    background-color: #FFA400 !important;
}

/* Dashboard Card Styling */
.dashboard-card-custom {
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 0.5rem; /* Match card border-radius */
}

.dashboard-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Quick Action Card Styling */
.quick-action-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-custom {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden; /* Ensures content respects border-radius */
}

.card-custom .card-body {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-custom {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.card-number-custom {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.card-custom .fa-3x {
    font-size: 3.5rem;
    opacity: 0.3;
}

/* Table and List Styling for Dashboard */
.card-table-custom {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adding shadow effect */
}

.card-table-custom .card-header {
    background-color: #d9edf7 !important; /* Light blue background for header */
    border-bottom: 1px solid #bce8f1 !important;
    padding: 1rem 1.5rem !important; /* Increased padding */
}

.card-table-custom .card-title {
    font-weight: 700 !important;
    color: #31708f !important;
    font-size: 1.15rem !important;
}

.table-hover-animation {
    border-collapse: separate; /* Allows border-radius on cells */
    border-spacing: 0; /* Removes space between cells */
}

.table-hover-animation thead th {
    background-color: #cce5ff !important; /* Light blue header background */
    color: #004085 !important; /* Darker blue text for headers */
    border-bottom: 2px solid #a7d8ff !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    vertical-align: middle !important;
}

.table-hover-animation tbody tr {
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.table-hover-animation tbody tr:nth-of-type(odd) {
    background-color: #f8fafd !important; /* Very light blue for odd rows */
}

.table-hover-animation tbody tr:nth-of-type(even) {
    background-color: #ffffff !important; /* White background for even rows */
}

.table-hover-animation tbody tr:hover {
    background-color: #e0f2f7 !important; /* Slightly darker blue on hover */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}

.table-hover-animation tbody td {
    padding: 0.75rem 1.5rem !important; /* Increased padding for table cells */
    vertical-align: middle !important;
    border-top: 1px solid #e9f5f9 !important; /* Lighter border between rows */
}

.list-hover-animation .item {
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0.75rem 1.25rem; /* Adjust padding to match table rows */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important; /* Add border for separation */
}

.list-hover-animation .item:last-child {
    border-bottom: none !important; /* No border for the last item */
}

.list-hover-animation .item:nth-of-type(odd) {
    background-color: #fdfdfe !important; /* Very light white for odd items */
}

.list-hover-animation .item:nth-of-type(even) {
    background-color: #f5f7fa !important; /* Lightest grey background for even items */
}

.list-hover-animation .item:hover {
    background-color: #e9edf2 !important; /* Slightly darker grey on hover */
    transform: translateX(5px); /* Slight movement to the right */
}

.list-hover-animation .item .product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-hover-animation .item .product-title {
    font-weight: 500;
    color: #343a40;
    text-decoration: none;
}

.list-hover-animation .item .product-description {
    font-size: 0.85rem;
    color: #6c757d;
}

.list-hover-animation .item .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

/* Custom Form Card Styling */
.card-custom-form {
    border-radius: 0.75rem !important;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    margin-top: 2rem; /* Add some top margin */
}

.card-custom-form .card-header {
    background-color: #d9edf7 !important; /* Light blue header */
    border-bottom: 1px solid #bce8f1 !important;
    padding: 1.25rem 1.75rem !important;
}

.card-custom-form .card-title {
    font-weight: 700 !important;
    color: #31708f !important;
    font-size: 1.3rem !important;
}

.card-custom-form .card-body {
    padding: 2rem !important;
}

.form-control-custom {
    border-radius: 0.5rem !important;
    border: 1px solid #ced4da !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control-custom:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Global Background Color */
body {
    background-color: #F3F2EC !important;
}

/* Custom styles for logout button */
.logout-button-creative {
    color: #dc3545 !important; /* Red color for the icon/text */
    font-weight: bold;
    transition: all 0.3s ease;
}

.logout-button-creative:hover {
    color: #a71d2a !important; /* Darker red on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    text-decoration: none; /* Remove underline on hover */
}

.logout-button-creative i {
    font-size: 1.2em; /* Slightly larger icon */
    vertical-align: middle; /* Align icon with text */
}

/* Custom styles for mobile user name in header */
.navbar-nav .nav-item.d-md-none .nav-link.text-white.fw-bold {
    color: #ffffff !important; /* Ensure white color */
    font-weight: bold !important; /* Ensure bold font weight */
    padding-left: 10px; /* Add some padding to the left */
    padding-right: 10px; /* Add some padding to the right */
    font-size: 1.3em; /* Increased font size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Stronger text shadow */
    letter-spacing: 0.5px; /* Add letter spacing */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.navbar-nav .nav-item.d-md-none .nav-link.text-white.fw-bold:hover {
    color: #f8f8f8 !important; /* Slightly lighter white on hover */
    transform: scale(1.08); /* More pronounced enlarge on hover */
}


/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card-custom .card-body {
        flex-direction: row;
        text-align: left;
    }
    .card-custom .fa-3x {
        font-size: 2.5rem;
        margin-left: 1rem;
    }
    .card-title-custom {
        font-size: 0.9rem;
    }
    .card-number-custom {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-title-custom {
        font-size: 0.95rem;
    }
    .card-number-custom {
        font-size: 2rem;
    }
    .card-custom .fa-3x {
        font-size: 3rem;
    }
}

/* Custom styles for hamburger icon size */
.hamburger-icon-large {
    font-size: 1.5rem; /* Proposed larger size */
}

/* Responsive sidebar toggle button */
@media (min-width: 992px) { /* Adjust breakpoint as needed for 'lg' */
    .navbar-nav .nav-item:first-child { /* Target the first nav-item which is the toggle button */
        display: none;
    }
}

/* Adjust sidebar for mobile */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: -250px; /* Hide sidebar off-screen */
        width: 250px;
        height: 100%;
        z-index: 1050; /* Ensure it's above other content */
        transition: left 0.3s ease-in-out;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    }

    .app-sidebar.sidebar-open {
        left: 0; /* Slide in sidebar */
    }

    .app-wrapper {
        overflow-x: hidden; /* Prevent horizontal scroll when sidebar is open */
    }
}
