body {
    background-color: ghostwhite;
}

.header {
    background: #495057;
    padding: 10px;
    width: 100%;
    color: whitesmoke;
    /*top: 0;
    position: sticky;*/
}

.headerInnerDiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Menu Links */
.menusDiv {
    display: flex;
    align-items: center;
}

.menusDiv a,
.profileBtn {
    padding: 7px 20px;
    text-decoration: none;
    font-weight: bold;
    color: whitesmoke;
    background: none;
    border: none;
    cursor: pointer;
}

.menusDiv a.active {
    border-bottom: 3px solid whitesmoke;
}

.menusDiv a:hover,
.profileBtn:hover {
    background-color: #e1e1e1;
    color: #495057;
}

/* Profile Dropdown */
.profileDropdown {
    position: relative;
}

.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;
}

/* Mobile Menu Toggle */
.menuToggleBtn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: whitesmoke;
    cursor: pointer;
}

.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;
}


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

.cardDiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 300px;
    border-radius: 0 5px 5px 0;
}

.cardDiv h6 {
    opacity: .5
}

/* results view page styles */
.schName {
    font-family: "arial black";
    text-transform: uppercase;
    margin-bottom: -7px;
}
.smallTable {
    border-collapse: collapse; 
    width: 100%; 
    /*text-align: center;*/
    border: 1px solid black;
}
.smallTable tr td{
    padding: 0 30px 0 5px;
    /*text-align: center;*/
    border: 1px solid black;
}
.firstTr {
    text-align: center;
    background-color: #f3f3f3;
}
.dynamic{
    text-align: center;
}

.viewResulsForm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}


.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%;
}

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

/* Adjust layout for smaller screens */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr; /* Single column on small screens */
  }
}

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

/* For cells with "I" (Present) */
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) */
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) */
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;
}