*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.heading{
    width: 100%;
    /* height: 100px; */
    background-color: rgb(18, 74, 126);
    font-size: 48px;
    color: white;
    text-align: center;
    padding: 20px;
    
}

#school{
    font-size: 48px;
    color: rgb(30, 129, 191);
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
    font-weight: 700;
}

#logout-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
}


/* --------------login form ----  */
.login{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px;
    grid-gap: 20px;
    margin: 20px;

}

.image{
    width: 100%;
    height: 100%;
  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.right{
    background-color: rgb(182, 226, 240);
    border-radius: 20px;
}
#form{
        display: flex;
        flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-top: 10%;
      

  }
  #form input{
      
      padding: 12px 20px;
      margin: 10px 0;
      display: inline-block;
      border: 1px solid #ccc;
      box-sizing: border-box;
      border-radius: 5px;
  }
  #submit:hover{
      background-color: rgb(51, 89, 216);
      color: black;
      border-radius: 5px;
  }

  .login_head{
      width: 80%;
      margin: auto;
      margin-top: 20px;
      font-size: 38px;
      background-color: rgb(5, 46, 117);
        color: white;
    text-align: center;
    padding: 10px;
     border-radius: 20px;   
  }


  /* --------------student form -------------- */

  table,
td,
th {
border: 1px solid #ddd;
text-align: left;

}

table {
border-collapse: collapse;
width: 100%;
margin: auto;
margin-top: 50px;


}

th,
td {
padding: 15px;
text-align: center;
}

tr > th {
background-color: teal;
color: white;
}

.studentData{
    width: 100%;
    background-color: rgb(0, 90, 128);
    padding: 15px;

}
#form1{
    margin: auto;
    width: 98%; 
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap; /* Force one row */
}
#form1 input{
    padding: 10px ;
    flex: 1; /* Inputs will share space */
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
    margin: 0; /* Remove old margin-right */
}
#form1 input:focus{
    outline: none;
}
#add-btn {
    white-space: nowrap; /* Prevent button text wrapping */
}

.td6{
    /* display: flex; */
    align-items: center;
    justify-content: center;


}
.td6 > button{
    margin-right: 10px;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
} 

.td6 > button:nth-child(1){
    background-color: green;
}
.td6 > button:nth-child(2){
    background-color: red;
}

#absent{
    background-color: red;
}

/* ----------------- New Feature Styles (Integrated) ----------------- */

/* Attendance Button 'Active' States */
.btn-present.active {
    background-color: #0d6efd !important; /* Blue to show selection */
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.btn-absent.active {
    background-color: #000 !important; /* Black to show selection */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 2px solid green;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    font-family: Arial, sans-serif;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: green;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

/* Search Area */
.search-container {
    width: 80%;
    margin: 20px auto;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Action Buttons (Edit/Delete) */
.btn-edit {
    background-color: #ffc107 !important; /* Warning / Yellow */
    color: black !important;
}

.btn-delete {
    background-color: #dc3545 !important; /* Danger / Red */
    color: white !important;
}

.attendance-btns {
    display: flex;
    gap: 5px;
    justify-content: center;
}

/* Ensure form buttons look like original btn-warning if possible */
.btn-premium {
    padding: 10px 20px;
    background-color: #ffc107;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.btn-premium:hover {
    background-color: teal;
    color: white;
}