  :root {
--primary-color: #635bff;
--secondary-color: #00d4ff;
--third-color: #5c6ac4;
--background-color: #f6f9fc;
--text-color: #32325d;
--accent-color: #24b47e;

    --sidebar-width: 224px;
    --header-height: 60px;
    --footer-height: 40px;
    /*--sidebar-col-width:50px;*/
    --sidebar-col-width:0px;
  }
       
       
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
header.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    margin-top: -10px;
    margin-left: 5px;
    margin-bottom: -5px;
}

.navbar-text {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    
}

/* Sidebar Styles */
#sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    transition: all 0.3s;
    overflow: hidden; /* Ensures content is hidden when sidebar is collapsed */
}

#sidebar.collapsed {
    width: var(--sidebar-col-width);
}

#sidebar span {
    display: inline; /* Show text inside sidebar */
}

#sidebar.collapsed span {
    display: none; /* Hide text inside sidebar when collapsed */
}

#sidebar.hidden {
    display: none; /* Completely hide the sidebar on smaller screens when collapsed */
}

#sidebar .nav-link {
    color: white;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#sidebar-collapse {
    margin-left: -5px;
}

#sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.content-wrapper {
    flex: 1;
    display: flex;
}

#main-content {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

#main-content.expanded {
    margin-left: 0;
}

#main-content.collapsed {
    /* Adjustments can be made here if necessary */
}

/* Footer Styles */
footer {
    background-color: white;
    color: var(--text-color);
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(2,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-third {
    background-color: var(--third-color);
    border-color: var(--third-color);
}

/* Responsive Design */
@media (min-width: 769px) {
    #sidebar.collapsed .nav-link i {
        display: block;
    }

    #sidebar.collapsed [data-bs-toggle="tooltip"] {
        display: block; /* Show tooltips only when sidebar is collapsed */
    }

    #sidebar.expanded [data-bs-toggle="tooltip"] {
        display: none; /* Hide tooltips when sidebar is expanded */
    }
}

@media (max-width: 768px) {
    #sidebar {
        display: none; /* Hide sidebar on small screens by default */
    }

    #sidebar.active {
        display: block;
        width: var(--sidebar-width); /* Fully expand sidebar on small screens */
        position: absolute;
        z-index: 1000;
    }

    #main-content {
        margin-left: 0; /* Ensure main content takes full width when sidebar is hidden */
    }

    .nav-item span {
        display: none;
    }

    .navbar-brand img {
        height: 40px;
        width: auto;
        margin-top: -5px;
        margin-left: 5px;
        margin-bottom: -5px;
    }
}

/* Utility Classes */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Batch List Screen Styles */
.toolbar {
    background-color: var(--third-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.toolbar select,
.toolbar .btn {
    border-radius: 20px;
}

#batchTable tbody tr {
    cursor: pointer;
}

#batchTable tbody tr:hover {
    background-color: rgba(46, 125, 50, 0.1);
}


/*.dataTables_wrapper .dataTables_filter input,*/
/*.dataTables_wrapper .dataTables_length select {*/
/*    border-radius: 20px;*/
/*    border: 1px solid var(--primary-color);*/
/*    padding: 5px 10px;*/
/*}*/

/*.dataTables_wrapper .dataTables_paginate .paginate_button.current,*/
/*.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {*/
/*    background: var(--primary-color);*/
/*    color: white !important;*/
/*    border-radius: 20px;*/
/*}*/

/*.dataTables_wrapper .dataTables_paginate .paginate_button:hover {*/
/*    background: var(--accent-color);*/
/*    color: white !important;*/
/*    border-radius: 20px;*/
/*}*/

/* Batch Detail Page Styles */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
}

#studentsTable_wrapper .row:first-child,
#studentsTable_wrapper .row:last-child {
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 768px) {
    .card-header .btn {
        margin-top: 10px;
    }
}

/* Menu Builder Styles */
.menu-item {
    border: 1px solid #ddd;
    padding: 2px;
    margin-bottom: 2px;
    background-color: #f8f9fa;
}

.menu-item .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0px;
}

.menu-item .form {
    margin: 2px;
}

.drop-area {
    border: 2px dashed #ccc;
    padding: 1px;
    text-align: center;
    color: #999;
    font-style: italic;
    margin-left: 20%;
    display: none;
}

.submenu {
    margin-left: 20px;
}

.modifying-info {
    padding: 1rem;
}

.blue-background-class {
    background-color: #e6f2ff;
}

@media (max-width: 768px) {
    .menu-item .row > div {
        margin-bottom: 10px;
    }
}

/* Toast Messages */
#toast-container {
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hiding {
    opacity: 0;
    transform: translateY(-20px);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}
.toast.warning {
    background-color: yellow;
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}       
       
       
       
/* Old one*/

        .card {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            border: none;
            margin-bottom: 10px;

        }
       

.card-header {
    font-weight: bold;
   background-color: var(--primary-color);
   color: white;
}

/* Add to your existing styles.css file */
.card-header .nav-tabs {
    border-bottom: none;
}

.card-header .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 0.75rem 1rem;
    margin-bottom: -1px;
    background: transparent;
    border-radius: 0;
    transition: all 0.2s ease-in-out;
}

.card-header .nav-tabs .nav-link:hover {
    color: #fff;
    background-color: var(--accent-color);
    border: none;
}

.card-header .nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: #fff;
    /*border: none;*/
    /*font-weight: 500;*/
}

.card-header .nav-tabs .nav-link:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.card-header .nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 4px;
}

.card-header .nav-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: 4px;
}

#studentsTable_wrapper .row:first-child,
#studentsTable_wrapper .row:last-child {
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 768px) {
    .card-header .btn {
        margin-top: 10px;
    }
}



        .admin-list {
            max-height: 400px;
            overflow-y: auto;
        }
        .admin-item {
            transition: background-color 0.3s ease;
        }
        .admin-item:hover {
            background-color: #f1f3f5;
        }
        .btn-remove {
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        .btn-remove:hover {
            opacity: 1;
        }
        

/* ---Attend time line---*/
/*----=====-----*/
#timelineContainer {
    position: relative;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 1px;
    height: 10px;
    background-color: #888;
}

.timeline-label {
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: #555;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 0.5s ease;
}

.timeline-before {
    background-color: #888;
}

.timeline-during {
    background-color: #28a745;
    opacity:.5;
}

.timeline-after {
    background-color: #dc3545;
}

.timeline-checkin-marker, .timeline-checkout-marker {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #007bff;
}

.timeline-checkout-marker {
    background-color: #6c757d;
}

#attendanceStatus {
    margin-bottom: 15px;
}

#attendanceBtn {
    width: 100%;
}

/*------=======------*/

/*----======--------*/
/*dashboard grid css*/

.grid-container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


@media (min-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    /* Additional styling for grid items if needed */
}
/*------=========--------*/

/*------=============------*/
/*Changes on 1st Nov for calendar and toast*/
.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #eee;
    padding: 1px;
    border-radius: 4px;
}

.calendar-header {
    background-color: #f8f9fa;
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.calendar-day {
    background-color: white;
    padding: 0.5rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calendar-day.empty {
    background-color: #f8f9fa;
}

.calendar-day.selected {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

.calendar-day.holiday {
    background-color: #fff3e0;
}

.calendar-day.weekend {
    background-color: #f5f5f5;
}

.calendar-day.selected.holiday,
.calendar-day.selected.weekend {
    background-color: #ffecb3;
    border: 1px solid #ffd54f;
}

.date-number {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.holiday-name {
    font-size: 0.75rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Enhancements */
.affected-date {
    background-color: #e3f2fd !important;
    border-radius: 4px;
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Toast Enhancements */
.toast-container {
    z-index: 1060;
}

/* Animation classes */
.animate-in {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/*-------==========-----------*/

details {
    /*border: 1px solid #ddd;*/
    /*border-radius: 4px;*/
    /*margin-bottom: 15px;*/
    padding: 1rem;
}

details summary {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    padding-bottom: 1rem;
}

details[open] {
    /*background-color: #f9f9f9;*/
    /*border-color: #007bff;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

details summary::-webkit-details-marker {
    display: none; /* Hides the default arrow marker */
}

/*details summary::after {*/
 /*   content: "▼";  Adds a custom arrow icon */
/*    float: right;*/
/*    font-size: 1em;*/
/*    color: #007bff;*/
/*}*/

/*details[open] summary::after {*/
   /* content: "▲";  Changes icon when expanded */
/*}*/
/*----------===========----------*/

/*-----New toast---------*/

/* styles.css */

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Base Style */
.toast {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Toast Types */
.toast.success {
    background-color: #28a745; /* Green */
}

.toast.warning {
    background-color: #ffc107; /* Yellow */
    color: #212529;
}

.toast.error {
    background-color: #dc3545; /* Red */
}

.toast.info {
    background-color: #17a2b8; /* Blue */
}

/* Show Animation */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide Animation */
.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Close Button */
.toast .toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.toast .toast-close:hover {
    opacity: 1;
}

/* Accessibility Focus */
.toast:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/*chart*/

.certification-list {
    max-height: 400px;
    overflow-y: auto;
}

#certificationGrowthChart {
    min-height: 250px;
    width: 100%;
}