*{
    /*border-radius: 0px !important;*/
}
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

.sidebar {
    height: 100vh; /* Full height */
    width: 250px; /* Fixed width */
    position: fixed; /* Stays in place */
    top: 0;
    left: 0;
    background-color: #343a40;
    padding-top: 20px;
    color: #fff;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.sidebar a {
    padding: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #fff;
    transition: background 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #495057;
}
.sidebar a .bi {
    margin-right: 10px;
}

.submenu {
    padding-left: 40px !important;
    display: block;
    padding: 10px;
    font-size: 14px;
    background: #3a4148;
}
.submenu:hover {
    background: #525960;
}

/* Hide scrollbar for a cleaner look */
.sidebar::-webkit-scrollbar {
    width: 6px; /* Small width */
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3); /* Light scrollbar */
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Darker on hover */
}
/* Remove Bootstrap's default dropdown caret */
.sidebar a::after {
    display: none !important;
}


.small{
    width: 0px;
}

.small h3, .small a{
    display: none!important;
}

.headerBig{
    width: 100%!important;
}

.contentBig{
    margin-left: 0px!important;
}

.header {
    position: sticky;
    top: 0;
    left: 250px;
    width: calc(100% - 250px);
    background-color: #495057;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10; 
}
.header .menuIcons {
    display: flex;
    align-items: center;
}
.header .menuIcons .icon {
    margin-left: 20px;
    color: #fff;
    cursor: pointer;
}
.content {
    /*margin-top: 60px;*/
    margin-left: 250px;
    padding: 20px;
}
.btn {
    border-radius: 5px;
    /*margin: 5px;*/
    color: #fff;
    font-weight: bold;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn i {
    margin-right: 5px;
}
.btn:hover {
    transform: scale(1.05);
}
.btnPrimary {
    background: linear-gradient(to right, #007bff, #0056b3);
    border: none;
}
.btnDanger {
    background: linear-gradient(to right, #dc3545, #a71d2a);
    border: none;
}
.btnExtra {
    background: linear-gradient(to right, #28a745, #1e7e34);
    border: none;
}
.table, .formDiv, .contentDiv {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.table th {
    background: #343a40;
    color: #fff;
}
.formDiv, .contentDiv {
    padding: 20px;
}
.form-label {
    display: block !important;
}
.form-control, .form-select {
    border-radius: 5px;
    box-shadow: none;
    border: 1px solid #ccc;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ensures it takes full viewport height */
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center; /* Centers content vertically */
    z-index: 9999;
    display: none; /* Initially hidden */
}

.loader-content {
    text-align: center;
}



/*passport style*/
.passportDiv{
    text-align: center;
}
.passport, .ppassport, .slogo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.login-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: #ccc;
    padding: 20px;
}
.logo-container img {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
}

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

.dropdownMenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 180px;
    z-index: 1;
}

.dropdownMenu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.dropdownMenu a:hover {
    background: #e1e1e1;
}

.dropdownMenu.show{
    display: block;
}

/* Profile Header */
.profileHeader {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    color: black;
    align-content: center;
    justify-content: flex-start;
    text-align: center;
}

.profileHeader img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    /*padding: 20px;*/
}

.cardDiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardDiv:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.cardDiv span:first-child {
    display: flex;
    flex-direction: column;
}

.cardDiv h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.cardDiv h6 {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #666;
}

.cardDiv i {
    font-size: 2.5rem;
    color: #007bff;
}


.voucherMainDiv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    /*gap: 10px;*/
}

.box {
    border: 1px solid black;
    padding: 10px;
    /*width: 100px;*/
}

.collapsibleHeader {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chevron {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.collapsed .chevron {
    transform: rotate(180deg);
}



@media print {
    .voucherMainDiv {
        -webkit-print-color-adjust: exact; /* Chrome, Safari */
        print-color-adjust: exact; /* Standard */
        -moz-print-color-adjust: exact; /* Firefox */
    }

    * {
        -webkit-print-color-adjust: exact; /* Chrome, Safari */
        color-adjust: exact; /* Standard */
    }
    .sidebar, .breadcrumDiv, .header, .btn {
        display: none;
        width: 0;
    }

    .row.mt-2.justify-content-between {
        display: none;
        width: 0;
    }

    .content {
        /*width: 100% !important;*/
        margin-left: 0px;
    }
}

/* attendance table styling */
.viewAttendanceTable td {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* For cells with "I" (Present) */
.viewAttendanceTable td[data-content="I"]:hover::after {
  content: "Present";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #e8f5e9; /* Light green background */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* For cells with "0" (Absent) */
.viewAttendanceTable td[data-content="0"]:hover::after {
  content: "Absent";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #ffebee; /* Light red background */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* For empty cells (Not marked) */
.viewAttendanceTable td:empty:hover::after {
  content: "Not Marked";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #e3f2fd; /* Light blue background */
  display: flex;
  align-items: center;
  justify-content: center;
}