/*============================================================
   ✨ Global Resets and Base Setup
============================================================ */

/* Consistent box-sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset default margins and paddings for the whole page */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Full viewport height */
    font-family: Arial, sans-serif; /* Clean, readable font */
}

/* ============================================================
   ✨ Main Layout
   ============================================================ */

/* Layout for the body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9
}

/* Central flex container */
.container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Grow and push footer down */
}


/*✨ Navbar (Primary Navigation Bar)
 ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #4165f6;
    color: white;
    padding: 10px 20px;
    z-index: 1000; /* Stay above all */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Logo */
.navbar .logo {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

/* Navbar Links Container */
.navbar ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Navbar Individual Link */
.navbar li {
    margin: 0 10px;
    padding: 0;
}

.navbar a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

/* Hover effect for links */
.navbar li.active-green a,
.navbar a:hover {
    color: #bff939;
}

/* ✅ MOBILE OVERRIDE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 0.01px 0.02px;
  }

  .logo-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1px;
  }

  .navbar .logo img {
    height: 30px;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    font-size: 16px;
    white-space: nowrap;
    
  }

  .nav-links a {
    font-size: 13px;
    padding: 4px 6px;
    display: inline-block;
  }
  

}

/* ============================================================
   ✨ Secondary Navbar (Below Main Navbar)
   ============================================================ */

.secondary-navbar {
    position: fixed;
    top: 45px; /* Below main navbar */
    left: 0;
    right: 0;
    background-color: #3c3d3d;
    padding: 10px 0;
    z-index: 999;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Container for secondary navbar links */
.secondary-navbar ul {
    display: flex;
    justify-content: center;
    width: 100%;
}

.secondary-navbar li {
    margin: 0 15px;
}

@media (max-width: 768px) {
  .secondary-navbar {
    top: 80px;                        /* Adjust if your main navbar changes height */
    height: 40px;
    padding: 0;
    background-color: #3c3d3d;
    overflow-x: auto;
  }

  .secondary-navbar ul {
    display: flex !important;        /* Force horizontal layout */
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    padding: 0 10px;
    padding-left: 0.1px;             /* Helps prevent first-item clipping */
    gap: 0.001px;                    /* Minimum spacing between items */
    margin: 0;
    scrollbar-width: none;
  }

  .secondary-navbar ul::-webkit-scrollbar {
    display: none;                   /* Hide scrollbar on mobile */
  }

  .secondary-navbar li {
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
  }

  .secondary-navbar li:first-child {
    margin-left: 80px;              /* Push first item into view if it was hidden */
  }

  .secondary-navbar a {
    padding: 0.001px 0.001px;       /* Minimized padding for tight spacing */
    font-size: 10px;
    display: inline-block;
  }
}





/* ============================================================
   ✨ Third Navbar (Only for Students Section)
   ============================================================ */

.third-navbar {
    position: fixed;
    top: 85px; /* Below secondary navbar */
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 10px 0;
    z-index: 998;
    height: 40px;
    display: flex;
    align-items: center;
}

.third-navbar ul {
    display: flex;
    justify-content: center;
    width: 100%;
}

.third-navbar li {
    margin: 0 15px;
}

@media (max-width: 768px) {
  .third-navbar {
    top: 119px; /* 40px (primary) + 38px (secondary) */
    height: 38px;
    padding: 0;
    background-color: #f8f9fa;
    overflow-x: auto;
  }

  .third-navbar ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    padding: 0 10px;
    margin: 0;
    gap: 0.001px;
    scrollbar-width: none;
    position: relative;
  }

  .third-navbar ul::before {
    content: "";
    flex: 0 0 25px;   /* ✅ Pushes first item into view */
  }

  .third-navbar ul::-webkit-scrollbar {
    display: none;
  }

  .third-navbar li {
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
  }

  .third-navbar a {
    padding: 0.001px 0.001px;
    font-size: 10px;
    display: inline-block;
  }
}





/* ============================================================
   ✨ Main Content Areas
   ============================================================ */

/* General Page Content */
.content {
    flex: 1;
    padding: 20px;
    padding-top: 85px; /* Space for navbars */
    text-align: center;
    background-color: #f9f9f9;
    overflow-x: auto;

}

@media (max-width: 768px) {
  .content {
    padding-top: 130px; /* Enough room for all three bars */
  }
}


/* Students-specific Content Wrapper */
.students-content {
    flex: 1;
    padding: 20px;
    padding-top: 55px;
    min-height: calc(100vh - 165px);
    text-align: center;
    background-color: #f9f9f9;
}

/* Tables inside Students Section */
.students-content table {
    margin-bottom: 50px; /* ✅ FIXED typo: "50x" → "50px" */
}

/* Tables for View Student / View Group Pages */
.view-student-page table,
.view-group-page table {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
  .students-content {
    padding: 10px;
    padding-top: 130px; /* Enough space for 3 stacked navbars */
    text-align: left;
  }

  .students-content table {
    width: 100%;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 8px;
  }

  .students-content table th,
  .students-content table td {
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
  }

  .view-student-page table,
  .view-group-page table {
    width: 100%;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .view-student-page table::-webkit-scrollbar,
  .view-group-page table::-webkit-scrollbar {
    display: none;
  }
}


/* ============================================================
   ✨ Sticky Footer
   ============================================================ */

.footer {
    background-color: #4165f6;
    color: white;
    text-align: center;
    padding: 8px 0;
    width: 100%;
    margin-top: auto;
}

.footer p {
    margin: 0;
    padding: 0;
}

.footer a {
    color: #ff6f61;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}



/*hereo what changed register and login form/
/* ------------------
📦 General Form Layout (Used for Login + Register)
------------------- */
/* Login Form Container */
.login-container {
    width: 100%;
    max-width: 400px; /* Set a maximum width for the form */
    margin: 50px auto; /* Center the form and add top margin */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for a modern look */
}

/* Form Title */
.login-container h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #4165f6; /* Matching header color */
}

/* Input Fields */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #4165f6; /* Highlight with a blue color */
    outline: none; /* Remove the default focus outline */
}

/* Submit Button */
.login-container button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #4165f6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.login-container button[type="submit"]:hover {
    background-color: #324ed3; /* Darker blue on hover */
}

/* Links */
.login-container .links {
    text-align: center;
    margin-top: 20px;
}

.login-container .links a {
    color: #4165f6;
    text-decoration: none;
    font-size: 16px;
}

.login-container .links a:hover {
    text-decoration: underline;
}

/* Register Form Container */
.register-container {
    width: 100%;
    max-width: 400px; /* Set a maximum width for the form */
    margin: 50px auto; /* Center the form and add top margin */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for a modern look */
}

/* Form Title */
.register-container h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #4165f6; /* Matching header color */
}

/* Input Fields */
.register-container input[type="text"],
.register-container input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.register-container input[type="text"]:focus,
.register-container input[type="password"]:focus {
    border-color: #4165f6; /* Highlight with a blue color */
    outline: none; /* Remove the default focus outline */
}

/* Submit Button */
/* Register Button */
.btn-register {
    width: 100%;
    padding: 15px;
    background-color: #4165f6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #324ed3;
}

/* Cancel Button */
.btn-cancel {
    width: 100%;
    padding: 15px;
    background-color: #f02b3f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #d62233;
}


/* Links */
.register-container .links {
    text-align: center;
    margin-top: 20px;
}

.register-container .links a {
    color: #4165f6;
    text-decoration: none;
    font-size: 16px;
}

.register-container .links a:hover {
    text-decoration: underline;
}

.password-hint {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
  display: block;
  text-align: left;
}


/* ------------------
📦 Navigation Bars
------------------- */

/* Secondary Navigation Bar */
.secondary-navbar,
.third-navbar {
    background-color: #3c3d3d; /* Default for secondary, override third below */
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.third-navbar {
    background-color: #f8f9fa; /* Light background for third bar */
    padding: 10px 0;
}

.secondary-navbar ul,
.third-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.secondary-navbar li,
.third-navbar li {
    margin: 0 20px;
}

.secondary-navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.third-navbar a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.secondary-navbar li.active-green a,
.secondary-navbar a:hover {
    color: #bff939;
}

.third-navbar li.active-red a,
.third-navbar a:hover {
    color: #fe0101;
}



/* --- Common Table Base Styling --- */
.course-details-table,
.course-list-table,
.teacher-list-table {
    width: 120%;
    max-width: 1430px;
    border-collapse: collapse;
    margin: 20px auto; /* Center the table */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Table Headers */
.course-details-table th,
.course-list-table th,
.teacher-list-table th {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Table Data Cells */
.course-details-table td,
.course-list-table td,
.teacher-list-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

/* Row Hover */
.course-details-table tr:hover,
.course-list-table tr:hover,
.teacher-list-table tr:hover {
    background-color: #f1f1f1;
}

/* Alternate Row Background */
.course-details-table tr:nth-child(even),
.course-list-table tr:nth-child(even),
.teacher-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Actions Column */
.course-details-table .actions,
.course-list-table .actions,
.teacher-list-table .actions {
    white-space: nowrap;
}

/* Buttons inside Tables */
.course-details-table .btn,
.course-list-table .btn,
.teacher-list-table .btn {
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* View Button */
.course-details-table .btn-view,
.course-list-table .btn-view,
.teacher-list-table .btn-view {
    background-color: #28a745;
}

.course-details-table .btn-view:hover,
.course-list-table .btn-view:hover,
.teacher-list-table .btn-view:hover {
    background-color: #218838;
}

/* Edit Button */
.course-list-table .btn-edit,
.teacher-list-table .btn-edit {
    background-color: #ffc107;    
}

.course-list-table .btn-edit:hover,
.teacher-list-table .btn-edit:hover {
    background-color: #e0a800;
}

/* Delete Button */
.course-list-table .btn-delete,
.teacher-list-table .btn-delete {
    background-color: #dc3545;
}

.course-list-table .btn-delete:hover,
.teacher-list-table .btn-delete:hover {
    background-color: #c82333;
}

/* --- Responsive Improvements --- */
@media (max-width: 768px) {
  /* Scrollable wrapper if needed */
  .table-scroll-wrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
  }

  .course-details-table,
  .course-list-table,
  .teacher-list-table {
      width: 100%;
      min-width: 600px; /* ✅ Make scrollable if table is wider than screen */
      font-size: 13px;
  }

  .course-details-table th,
  .course-list-table th,
  .teacher-list-table th,
  .course-details-table td,
  .course-list-table td,
  .teacher-list-table td {
      padding: 8px 5px;
      font-size: 12px;
      text-align: center;
  }

  .course-details-table .btn,
  .course-list-table .btn,
  .teacher-list-table .btn {
      padding: 4px 6px;
      font-size: 11px;
      margin: 2px;
  }

  /* Optional: Stack action buttons in vertical view if needed */
  .course-list-table .actions,
  .teacher-list-table .actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px;
  }
}

/**/

/***/

/* --- Group List Page General Layout --- */
.wrapper {
    margin: 0 auto;
}

/* Header Container for Pages */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -15px;    

}

/* Page Title Styling */
h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
  .wrapper {
    padding: 0 10px; /* Optional: small padding on mobile */
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .header-container h2 {
    font-size: 18px;
    text-align: left;
  }

  h2 {
    font-size: 18px;
  }
}


/* --- Add Button Styling --- */
.btn-add {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: auto;
    display: block;
    width: fit-content;
    margin: 20px auto;
}

.btn-add:hover {
    background-color: #324ed3;
}

.btn-add i {
    margin-right: 5px;
}

@media (max-width: 768px) {
  .btn-add {
    width: 90%;            /* Make button full-width with margin */
    font-size: 15px;
    padding: 12px 16px;
    text-align: center;
    margin: 15px auto;
  }

  .btn-add i {
    margin-right: 8px;
  }
}


/* --- Group List Table --- */
.group-list-table {
    width: 120%;
    max-width: 1430px;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.group-list-table th {
    padding: 12px 8px;
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.group-list-table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid #ddd;
}

.group-list-table tr:hover {
    background-color: #f1f1f1;
}

.group-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* --- Student List Table --- */
.student-list-table {
    width: 120%;
    max-width: 1430px;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.student-list-table th {
    padding: 10px 12px;
    background-color: #007bff;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.student-list-table td {
    padding: 10px 12px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid #ddd;
}

.student-list-table tr:hover {
    background-color: #f1f1f1;
}

.student-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}



/* --- Centered Header for Special Pages (View Group) --- */
.centered-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding-top: 5px;
}

.centered-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    margin: 0;
    color: #333;
}

.group-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
  .centered-header-container {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    gap: 6px;
  }

  .centered-title {
    position: static;
    transform: none;
    text-align: center;
    font-size: 18px;
    margin-bottom: 4px;
  }

  .group-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 0;
  }

  .group-actions .action-btn {
    font-size: 13px;
    padding: 6px 10px;
    flex: 1 1 auto;
    min-width: 100px;
  }
}


/* --- Group Information Tables --- */
.group-info-table,
.group-info-table2,
.totals-table,
.net-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Shared Cell Styling */
.group-info-table th, .group-info-table td,
.group-info-table2 th, .group-info-table2 td,
.totals-table th, .totals-table td,
.net-totals-table th, .net-totals-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Special Table Header Colors */
.group-info-table th {
    background-color: #007bff;
    color: white;
}

.group-info-table2 th {
    background-color: #e6bd42;
    color: white;
}

.totals-table th {
    background-color: #4c4d4f;
    color: white;
}

.net-totals-table th {
    background-color: #28a745;
    color: white;
}

/* Hover and Even Rows */
.group-info-table tr:hover,
.totals-table tr:hover,
.student-list-table tr:hover {
    background-color: #f1f1f1;
}

/* Table Title Style */
.table-title {
    padding: 12px 15px;
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-bottom: none;
    text-transform: uppercase;
    border-radius: 8px 8px 0 0;
}

@media (max-width: 768px) {
  .table-title {
    font-size: 13px;       /* Slightly bigger for readability */
    padding: 10px 12px;     /* Tighter and cleaner */
    text-align: center;     /* Optional: center-align on mobile */
  }
}


/* --- Responsive Table Adjustment for Mobile --- */
@media (max-width: 768px) {
    .group-list-table,
    .student-list-table {
        width: 100%;
        font-size: 13px;
    }

    .group-info-table,
    .group-info-table2,
    .totals-table,
    .net-totals-table {
        width: 100%;
    }

    .group-list-table th, .group-list-table td,
    .student-list-table th, .student-list-table td,
    .group-info-table th, .group-info-table td,
    .group-info-table2 th, .group-info-table2 td,
    .totals-table th, .totals-table td,
    .net-totals-table th, .net-totals-table td {
        padding: 8px;
        font-size: 12px;
    }
}
/***/

/****/

/* ------------------------ */
/* General Button Styling   */
/* ------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn i {
    margin-right: 5px; /* Space between icon and text */
}

/* Specific Button Variants */
.btn-edit {
    background-color: #ffc107;
    color: #000;
}
.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
}
.btn-delete:hover {
    background-color: #c82333;
}

.btn-add {
    background-color: #28a745;
    color: #fff;
}
.btn-add:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}
.btn-danger:hover {
    background-color: #c82333;
}

.btn-blocking {
    background-color: #6b6b73e0;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}
.btn-blocking:hover {
    background-color: #deb709;
}

.btn-save {
    background-color: #28a745;
    color: white;
}

.btn-cancel {
    background-color: #e02134;
    color: white;
}

.btn-pay {
    background-color: #28a745;
    color: white;
}
.btn-pay:hover {
    background-color: #197c2f;
}

.btn-payments {
    background-color: #5c5c63e0;
}
.btn-payments:hover {
    background-color: #404049e0;
}

.btn-goback {
    background-color: #95a5a6;
    color: white;
}
.btn-goback:hover {
    background-color: #7f8c8d;
}

/* Small buttons for specific actions */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
  .btn-goback {
    display: block;
    width: 100%;
    font-size: 13px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
  }

  .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* -------------------------------------- */
/* Button Alignment in Enrolled Students */
/* -------------------------------------- */
.enrolled-students > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
  .enrolled-students > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* Parent Container Helper */
.parent-container {
    padding: 0;
    border: 1px solid transparent;
}

/* Totals Table Minor Spacing */
.totals-table {
    margin-bottom: 5px;
}

/* ----------------------------- */
/* Student Details Page Styling  */
/* ----------------------------- */
.student-details-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}
.header h2 {
    font-size: 24px;
    color: #333;
}

/* Student Actions Section */
.student-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

/* Section Margins */
.personal-data,
.student-totals,
.enrollments {
    margin-bottom: 20px;
}

/* Tables Used in Student Details */
.personal-data-table,
.student-totals-table,
.enrollments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Table Cells */
.personal-data-table th,
.personal-data-table td,
.student-totals-table th,
.student-totals-table td,
.enrollments-table th,
.enrollments-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Table Headers */
.personal-data-table th,
.student-totals-table th,
.enrollments-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Special Header for Totals Table */
.student-totals-table th {
    background-color: #4c4d4f;
}

/* Hover Effects for Tables */
.personal-data-table tr:hover,
.student-totals-table tr:hover,
.enrollments-table tr:hover {
    background-color: #f1f1f1;
}

/* Even Row Background */
.personal-data-table tr:nth-child(even),
.student-totals-table tr:nth-child(even),
.enrollments-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


/****/

/*****/

/* ------------------------------ */
/* Flash Messages (Alerts)        */
/* ------------------------------ */
.alert {
    position: fixed;
    top: 135px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 1s;
}

/* Different Alert Types */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning,
.find-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ------------------------------ */
/* Table Title Styling            */
/* ------------------------------ */
.table-title {
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    border-bottom: none;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-radius: 4px 4px 0 0;
}

/* ------------------------------ */
/* Table Styling (Minimalistic)   */
/* ------------------------------ */
.minimalistic-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.minimalistic-table th,
.minimalistic-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.minimalistic-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.minimalistic-table tr:hover {
    background-color: #f1f1f1;
}

.minimalistic-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ------------------------------ */
/* Table Wrapper (for Spacing)    */
/* ------------------------------ */
.table-wrapper {
    margin-bottom: 30px;
}

/* ------------------------------ */
/* Table Header with Actions      */
/* ------------------------------ */
.table-header,
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Group Actions (Buttons Side by Side) */
.group-actions {
    display: flex;
    gap: 10px;
}

/* ------------------------------ */
/* General Button Styling         */
/* ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn i {
    margin-right: 5px;
}

/* Specific Button Variants */
.btn-edit {
    background-color: #ffc107;
    color: #000;
}
.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
}
.btn-delete:hover {
    background-color: #c82333;
}

.btn-add {
    background-color: #28a745;
    color: #fff;
}
.btn-add:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}
.btn-danger:hover {
    background-color: #c82333;
}

/*****/

/******/

/* ========================= */
/* 📑 Pagination Styling     */
/* ========================= */

.pagination {
    margin-top: -1px;
    text-align: center;
}

.pagination a, 
.pagination span {
    margin: 0 5px;
    padding: 8px 18px;
    text-decoration: none;
    color: #4165f6;
    border: 1px solid #4165f6;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #4165f6;
    color: white;
}

.pagination .disabled {
    color: #888;
    border-color: #888;
    cursor: not-allowed;
}

.pagination .page-info {
    margin: 0 5px;
    font-size: 14px;
    color: #333;
}


/* ========================= */
/* 📑 Search Bar + Add Button Styling */
/* Used in List Students, List Groups etc */
/* ========================= */

.button-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between search form and add button */
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    width: 200px; /* Consistent width for input */
}

.search-form button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3;
}

/* Add New Button (Example: Add Student, Add Group) */
.btn-add {
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap; /* Prevent text from breaking */
    transition: background-color 0.3s ease;
}

.btn-add:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
  .button-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .search-form input[type="text"] {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .search-form button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .btn-add {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    text-align: center;
  }
}


/******/

/* ==============================
        Attendance section 
   ============================== */
/* ==============================
   Attendance List Table Styling
   ============================== */
/* Page Structure */

/* Header Container */
.admin-wrapper {
    
    margin: 0 auto; /* Center the wrapper */
}

.admin-header-container {
    display: flex;
    justify-content: space-between; /* Title on the left, button on the right */
    align-items: center; /* Vertically center the title and button */
    margin-bottom: 5px; /* Add spacing below the header */
    margin-top: 45px;
}

/* Title Styling */
h2 {
    font-size: 24px;
    color: #333; /* Dark gray for better readability */
    margin: 0; /* Remove default margin */
}
.admin-attendance-page {
    margin: 20px auto;
    width: 120%;
    max-width: 1430px;
}

/* Header Section */
.admin-header {
    display: flex;
    justify-content:space-between;
    align-items: center;
    margin-bottom: 0px;
    padding: 0 10px;
    margin-top: 45px;
    width: 100%;
}

/* Title (Left Aligned at Table Corner) */
.admin-attendance-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

/* Search Form (Right Aligned at Table Corner) */
.admin-search-form {
    display: flex;
    align-items: center;
    margin-left: auto;  /* Pushes the search form to the right */
}

.admin-search-form input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.admin-search-form button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}

.admin-search-form button:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
  .admin-wrapper {
    padding: 0 10px; /* Add spacing on mobile sides */
  }

  .admin-header-container,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .admin-attendance-title,
  .admin-header h2 {
    font-size: 18px;
    text-align: left;
    width: 100%;
  }

  .admin-search-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .admin-search-form input {
    width: 100%;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .admin-search-form button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .admin-attendance-page {
    width: 100%;
  }
}


/* Styling Attendance Table */
.attendance-list-table {
    width: 100%;  /* Make sure it fits properly */
    max-width: 1430px;
    border-collapse: collapse;
    margin: 0 auto; /* Center the table */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 15px;
}

.attendance-list-table th,
.attendance-list-table td {
    padding: 12px 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.attendance-list-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.attendance-list-table td {
    font-size: 16px;
}

.attendance-list-table tr:hover {
    background-color: #f1f1f1;
}

.attendance-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Actions Column */
.attendance-list-table .actions {
    white-space: nowrap;
}

.attendance-list-table .btn {
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.attendance-list-table .btn-view {
    background-color: #28a745;
}

.attendance-list-table .btn-view:hover {
    background-color: #218838;
}


/* CSS Styling for attendance group cards */

/* Page Title */
.page-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Group Cards Container */
.group-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start; /* Changed to flex-start for better alignment */
    padding: 20px;  /* Instead of 20px */
    max-width: 1400px; /* Adjust based on your layout */
    margin: 0 auto; /* Center the container */

}

/* Group Card */
.group-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: calc(25% - 20px); /* 4 cards per row with gap */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Group Header */
.group-header {
    text-align: center;
    margin-bottom: 20px;
}

.group-name {
    font-size: 1.2rem;
    color: #34495e;
    margin: 0;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-align: center;
    width: 100%; /* Ensures full width */
}

/* Group Details */
.group-details {
    margin-bottom: 20px;
}

.group-details p {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.progress-bar {
    height: 20px;
    line-height: 20px;
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.progress-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #fff;
}

/* Dynamic Colors for Progress */
.progress-bar[data-progress="0"],
.progress-bar[data-progress^="1"],
.progress-bar[data-progress^="2"],
.progress-bar[data-progress^="3"],
.progress-bar[data-progress^="4"] {
    background: linear-gradient(90deg, #ff6b6b, #ff3b3b);
}

.progress-bar[data-progress^="5"],
.progress-bar[data-progress^="6"] {
    background: linear-gradient(90deg, #f7c20a, #e67e22);
}

.progress-bar[data-progress^="7"],
.progress-bar[data-progress^="8"],
.progress-bar[data-progress^="9"],
.progress-bar[data-progress="100"] {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Hours Information */
.hours-info {
    margin-bottom: 20px;
}

.hours-info p {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0;
}

/* Action Buttons */
.group-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 8px 13px; /* Increased padding for wider buttons */
    text-decoration: none;
    color: white;
    border-radius: 6px;
    font-size: 14px; /* Increased font size for better readability */
    transition: background 0.3s ease;
    
    
}

/* Special styles for buttons with the "first-card" class */
.first-card {
    padding: 10px 15px; /* Wider buttons */
    font-size: 14px; /* Adjust font size */
    margin-right: 3px; /* Space between buttons */
    display: flex;
    align-items: center; /* Align icon with text */
    justify-content: center; /* Center the content */
    gap: 6px; /* Space between icon and text */
}

.first-card i {
    font-size: 14px; /* Ensure icon size fits well */
    margin-right: 4px; /* Space between icon and text */
    vertical-align: middle; /* Align icon with text */
}


.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-info {
    background: #2ecc71;  
}

.btn-info:hover {
    background: #27ae60;
}

.btn-mark {
    background: #3b026ce0;
}

.btn-mark:hover {
    background: #2f1549e0;
}



/* this is for moblie dispay*/

@media (max-width: 1200px) {
    .group-card {
        width: calc(33.33% - 20px); /* 3 cards per row */
    }
}

@media (max-width: 900px) {
    .group-card {
        width: calc(50% - 20px); /* 2 cards per row */
    }
}

@media (max-width: 600px) {
    .group-card {
        width: 100%; /* 1 card per row */
    }
}

/* this styling for view attendance page */
/* styles.css */
/* styles.css */
.attendance-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.attendance-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.attendance-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form Row for Date and Taught Hours */
.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end; /* Align fields at the bottom */
}

.form-group.small-field {
    flex: 1; /* Make fields take equal space */
}

.form-group.small-field label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-control {
    text-align: center; /* Center text horizontally */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

/* Date Input Styling */
.date-input {
    background-color: #fff;
    cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.5); /* Make the calendar icon darker */
}

/* Attendance Table */
.attendance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.attendance-table th,
.attendance-table td {
    padding: 12px;
    text-align: center; /* Center everything in the table */
    border-bottom: 1px solid #ddd;
}

.attendance-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
}

.status-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-save:hover {
    background-color: #218838;
}



.btn-cancel:hover {
    background-color: #c82333;

}

btn-delete {
    background-color: #c82333;

}



/* Attendance Header Layout */
.history-attendance-header {
    display: flex;
    justify-content: flex-end; /* Buttons on the right */
    align-items: center;
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* Mobile Override (Stacked + Right-Aligned Buttons) */
/* ===== Mobile Layout (Applies below 768px) ===== */
@media (max-width: 768px) {
  /* Center-align header container */
  .history-attendance-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center */
    text-align: center; /* Text alignment */
    margin: 10px 0 15px 0;
    width: 100%;
  }

  /* Title styling */
  .history-attendance-header .page-title {
    font-size: 1.3rem;
    margin-bottom: 35px;
    width: 100%;
  }

  /* Button container */
  .history-attendance-header .history-attendance-actions {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap;
    width: 100%;
    margin-top: 25px;
  }

  /* Button styling */
  .history-attendance-header .btn {
    padding: 8px 16px;
    min-width: 100px;
  }
}




/* Style for buttons */
.history-attendance-actions .btn {
    margin-left: 10px; /* Space between buttons */
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    position: absolute; /* Position the title absolutely */
    left: 50%; /* Move the title to the middle */
    transform: translateX(-50%); /* Center the title precisely */
    margin: 0; /* Remove default margin */

}

.history-attendance-actions .btn {
    margin-left: 10px;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.history-attendance-actions .btn-primary {
    background-color: #3498db;
    border: none;
}

.history-attendance-actions .btn-primary:hover {
    background-color: #2980b9;
}

.history-attendance-actions .btn-secondary {
    background-color: #95a5a6;     
    border: none;
}

.history-attendance-actions .btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Attendance History Section */
.history-attendance-history {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    gap: 20px;
}

.history-attendance-history-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-attendance-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.history-card-header {
    padding: 12px;
    background-color: #b2b8e0; /* New color for date, time, and taught hours */
    color: #fff;
    text-align: center;
}

.history-card-title {
    font-size: 16px; /* Smaller font size */
    margin: 0;
    font-weight: 600;
}

.history-card-subtitle {
    font-size: 13px; /* Smaller font size */
    margin: 5px 0 0;
    opacity: 0.9;
}

.history-card-body {
    padding: 12px;
}

.history-student-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.history-list-group-item:last-child {
    border-bottom: none;
}

.history-list-group-item:hover {
    background-color: #f8f9fa;
}

.history-student-history-name {
    font-size: 15px; /* Smaller font size */
    font-weight: 500;
    align-items: center;
}

/* Style for Attendance Status Icons */
.status.history {
    font-size: 14px; /* Smaller font size */
    padding: 4px 8px;
    border-radius: 12px;
}

.status.history.present {
    background-color: #2ecc71;
    color: #fff;
}

.status.history.absent {
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 10px;
}


/* Card Footer - Centering the Delete Button */
.attendance-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

/* Centered Delete Button */
.history-btn-delete {
    background-color: #e74c3c;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 100%;  /* Reduce width */
}

.history-btn-delete i {
    font-size: 16px;
}

.history-btn-delete:hover {
    background-color: #a10717;
}



@media (max-width: 1200px) {
    .history-attendance-history {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row on smaller screens */
    }
}

@media (max-width: 768px) {
    .history-attendance-history {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 480px) {
    .history-attendance-history {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
}

/* this styling for grades page */
/* General Styles for Grades Page */
.grade-history-attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Added padding between header and form */
    max-width: 820px; /* Match form width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Ensure header aligns with form */
    padding-top: 30px;
}

.grade-page-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.grade-btn {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.grade-btn-secondary {
    padding: 8px 20px;
    background-color: #95a5a6;   
    color: #fff;
}

.grade-btn-secondary:hover {
    background-color: #7f8c8d;
}

.grade-btn-primary {
    background-color: #2ecc71;  
    color: #fff;
}

.grade-btn-primary:hover {
    background-color: #27ae60;
}

/* Form Container */
.grade-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grade-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.grade-table th,
.grade-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.grade-table th:nth-child(1), .grade-table td:nth-child(1) { width: 20%; }
.grade-table th:nth-child(2), .grade-table td:nth-child(2) { width: 15%; }
.grade-table th:nth-child(3), .grade-table td:nth-child(3) { width: 20%; }
.grade-table th:nth-child(4), .grade-table td:nth-child(4) { width: 45%; }

.grade-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.grade-table tbody tr:hover {
    background-color: #f1f1f1;
}

.grade-current-grade {
    font-weight: bold;
    color: #28a745;
    font-size: 14px;
}

.grade-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.grade-input:focus {
    border-color: #007bff;
    outline: none;
}

.grade-form-actions {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
}

.grade-comment {
    width: 100%;
    min-height: 55px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.grade-comment:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

/******/

/*******/

/* this css styling for master form which works with add/edit course, group, teacher and student
/* ✅ Master Form Container */
.master-form-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ Form Title */
.master-form-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* ✅ Form Group */
.master-form-group {
    margin-bottom: 15px;
}

.master-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.master-form-group input,
.master-form-group select,
.master-form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.master-form-group input:focus,
.master-form-group select:focus,
.master-form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* ✅ Buttons */
.master-form-buttons {
    display: flex;
    justify-content: flex-end; /* Aligns buttons to the right */
    gap: 10px; /* Adds space between buttons */
    margin-top: 15px; /* Adds spacing from the form */
}

.master-btn-save,
.master-btn-cancel {
    min-width: 120px; /* ✅ Same width for all buttons */
    text-align: center; /* ✅ Center the text */
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* Save Button */
.master-btn-save {
    background: #28a745;
    color: white;
}

.master-btn-save:hover {
    background: #218838;
}

/* Cancel Button */
.master-btn-cancel {
    background: #dc3545;
    color: white;
    text-decoration: none; /* Just in case it's a link */
}

.master-btn-cancel:hover {
    background: #c82333;
}


/* 🔍 Search Student Form */
.search-student-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

/* 📦 Input & Button Wrapper (Ensures Perfect Alignment) */
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

/* ✍ Student ID Input */
#student_id {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
}

/* 🔍 Find Button (Ensures Icon & Text Are Aligned) */
.master-btn-search {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center; /* ✅ Ensures Vertical Alignment */
    justify-content: center; /* ✅ Centers Content */
    gap: 6px; /* ✅ Space Between Icon & Text */
}

/* 🖱️ Hover Effect */
.master-btn-search:hover {
    background-color: #0056b3;
}

/* 🛠 Fix Icon Size */
.master-btn-search i {
    font-size: 18px;
}



/* Flash Messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/*******/

/*****this styling is for the dahsbored so treat it carefullly****/

/* this is for styling the dashbord*/
/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin: 5px 0;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-top: 30px;
    margin-bottom: -10px;
    
}

.dashboard-header .dashboard-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: #7c4dff; /* Purple */
    margin-bottom: 15px;
}

.card-content h2 {
    font-size: 2rem;
    color: #333;
    margin: 10px 0;
}

.card-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    
}

.card-percentage {
    margin: 10px 0;
}

.card-percentage .percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7c4dff; /* Purple */
}

.card-percentage span {
    margin: 0 7px; /* Adds horizontal space between percentages */
}

.card-percentage-pocket {
    margin: 25px 0;
}

.card-percentage-pocket .percentage {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7c4dff; /* Purple */
}

.card-percentage-pocket span {
    margin: 0 3px; /* Adds horizontal space between percentages */


}

.category-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-line:last-child {
    border-bottom: none; /* Remove border for the last line */
}

.category-line span{
    margin: 0 4px; /* Adds horizontal space between percentages */
}

.category-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    flex: 1; /* Allow the name to take up space */
}

.category-value {
    font-size: 1.1rem;
    color: #28a745; /* Green for revenue */
    margin: 0 10px;
    font-weight: bold;
}

.category-percentage {
    font-size: 1.1rem;
    color:#7c4dff; /* Purple */
    font-weight: bold;
}


.card-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.detail-paid {
    color: #28a745; /* Green */
}

.detail-rest {
    color: #ffc107; /* Yellow */
}

.detail-lost {
    color: #e4066e; /* Yellow #f44e9b*/
    
}

/* Update pocket Icon Styling */
.update-pocket-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #666; /* Light gray color */
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.update-pocket-icon:hover {
    color: #333; /* Darker color on hover */
}


/* Charts Section 1 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0px;
}

/* Charts Section 2 */
.charts-section-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-header {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
}

/* Existing Headers */
.revenue-header {
    background: linear-gradient(135deg, #4caf50, #b9dabb); /* Green */
}

.expense-header {
    background: linear-gradient(135deg, #7c4dff, #ccb3fb); /* Purple */
}

.courses-header {
    background: linear-gradient(135deg, #9c27b0, #dfabe7); /* Glossy Purple */
}

/* New Chart Headers */
.transactions-header {
    background: linear-gradient(135deg, #ec407a, #f6b6cb); /* Glossy Pink/Red */
}

.age-header {
    background: linear-gradient(135deg, #bbb155, #fff8c6); /* Glossy yellow-gold */
}

.pins-header {
    background: linear-gradient(135deg, #0471cb, #bad6ed); /* Glossy Blue */
}

.chart-header i {
    font-size: 1.5rem;
}

.chart-body {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

/* this styling to transactions dounet with lables on extreeme left  */
/* Wrapper for legend + chart */
.donut-flex-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* Legend box tight to the left side of the card */
.legend-column.tight-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  min-width: 160px;

  /* ALIGNMENT TWEAKS */
  padding-left: 0;
  margin-left: -6px; /* Pull closer to card edge */
  align-items: flex-start;
}

/* Icon before each legend item */
.legend-column span::before {
  content: " ";
  margin-right: 0px;
}



/* Thin Horizontal Card */
.thin-horizontal-card {
    width: 100%;
    background: #bbb155; /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    border-radius: 10px; /* Rounded corners */
    padding: 15px 20px; /* Padding inside the card */
    margin-bottom: 0px; /* Space below the card */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0px;
    
}

.thin-horizontal-card:hover {
    transform: translateY(-3px); /* Lift on hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

/* Thin Card Content */
.thin-card-content {
    display: flex;
    justify-content: space-between; /* Distribute items evenly */
    align-items: center;
    width: 100%;
    gap: 20px; /* Space between items */
}

/* Thin Card Item */
.thin-card-item {
    text-align: center;
    flex: 1; /* Allow items to grow and take equal space */
    min-width: 0; /* Prevent flex items from overflowing */
}

/* Thin Card Label */
.thin-card-label {
    font-size: 1rem;
    color: #020202; /* Light gray for labels */
    margin-bottom: 5px; /* Space between label and value */
}

/* Thin Card Value */
.thin-card-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fefefe; /* Purple for values */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .thin-card-content {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .thin-card-item {
    flex: 0 0 30%; /* 3 items per row with spacing */
    text-align: center;
    padding: 6px 0;
  }

  .thin-card-label {
    font-size: 0.85rem;
  }

  .thin-card-value {
    font-size: 1rem;
  }
}

/* Divider between items on mobile */
@media (max-width: 768px) {
  .thin-card-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
  }
}



/* Second Thin Card (Partner Details) #c5e9f7fe #bbd17ffe*/
.partner-thin-card {
    background: linear-gradient(
            to right,
            #e6f0ff 0%,
            #f9fbff 65%,
            #e6f0ff 100%
        );

    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-thin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


/* Partner Card Content */
.partner-card-content {
    display: flex;
    justify-content: space-between; /* Distribute partners evenly */
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Larger spacing between partners */
}

/* Partner Card Item */
.partner-card-item {
    display: flex;
    flex-direction: column; /* Stack name/value and payment details vertically */
    gap: 8px; /* Small spacing between name/value and payment details */
}

/* Partner Info (Name and Value) */
.partner-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and value */
}


/* Partner Payment (Paid and Rest) */
.partner-payment {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between paid and rest */
}

/* Partner Label */
.partner-label {
    font-size: 1rem;
    color: #666; /* Light gray for labels */
}

/* Partner Value */
.partner-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7c4dff; /* Purple for values */
}

/* Payment Label */
.payment-label {
    font-size: 0.9rem; /* Smaller font size */
    color: #666; /* Light gray for labels */
}

/* Payment Value */
.payment-value {
    font-size: 0.9rem; /* Smaller font size */
    font-weight: bold;
    color: #333; /* Dark gray for values */
}

@media (max-width: 768px) {
  .partner-card-content {
    flex-direction: column; /* Stack partners vertically */
    gap: 15px; /* Slightly smaller gap on mobile */
  }

  .partner-card-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }

  .partner-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .partner-payment {
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
  }

  .partner-label {
    font-size: 0.9rem;
  }

  .partner-value {
    font-size: 1.1rem;
  }

  .payment-label,
  .payment-value {
    font-size: 0.85rem;
  }
}


.alert-access_denied {
    background-color: #ffdddd;
    color: #b1504e;
    border-left: 5px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: bold;
}

/* this is for back button inside attendce by admin or for view teacher page by teacher back button */
.btn-secondary {
    background-color: #95a5a6;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #7f8c8d;
}

/*********/

/* styling 404 page */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    padding: 20px;
}

.error-container h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #e74c3c;
}

.error-container p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

.error-container .btn {
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.error-container .btn:hover {
    background-color: #2980b9;
}


/* Center the dropdown and ID fields inside the form */

.search-input {
    width: 100%;
    padding: 12px 15px; /* more padding to look nice */
    margin: 10px 0;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}


/* Special styling for select dropdown */
.search-input select, 
.search-input {
    appearance: none; /* Remove native arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
}



.search-select:focus,
.search-input:focus {
    border-color: #4165f6;
    outline: none;
}


/* View Button - centlized for any view page not mentioned Consistent Size and Look */
.btn-view {
    background-color: #28a745; /* Green */
    color: white;
    padding: 6px 12px; /* Same padding for consistent size */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Consistent font size */
    font-weight: 500; /* Optional: Slightly bold */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center icon and text */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-view:hover {
    background-color: #218838; /* Darker green on hover */
}

/* remind Button - used in alert students page - centlized for any view page not mentioned Consistent Size and Look */
.btn-remind {
    background-color: #ffc107; /* Green */
    color: rgb(35, 34, 34);
    padding: 6px 12px; /* Same padding for consistent size */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Consistent font size */
    font-weight: 500; /* Optional: Slightly bold */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center icon and text */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-remind:hover {
    background-color: #e0a800; /* Darker green on hover */  
}

.grade-button-bar-v2 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0px 0;
}

.grade-button-bar-v2 .join-btn {
    margin-right: 360px;
}

.grade-button-bar-v2 .send-btns {
    display: flex;
    gap: 10px;
}

/* ✅ MOBILE STYLES */
@media (max-width: 768px) {
    .grade-button-bar-v2 {
        justify-content: center;        /* Center buttons on small screen */
        gap: 5px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .grade-button-bar-v2 .join-btn {
        margin-right: 0 !important;     /* 🚫 Kill this in mobile view */
        width: 100%;                    /* Optional: full width for stacking */
    }

    .grade-button-bar-v2 .send-btns {
        flex-direction: column;         /* Stack send buttons vertically */
        width: 100%;
    }

    .grade-button-bar-v2 .send-btns a,
    .grade-button-bar-v2 .send-btns button {
        width: 100%;                    /* Make all buttons full width */
    }
}



/* === Test fill info Page Layout after pin enter=== */
/* === Test Page Layout === */
.test-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    padding: 15px 30px; 
    max-width: 1300px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 1px;             /* optional fine-tune */

   
}


/* === Columns === */
.test-section,
.test-info,
.test-form {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

/* === Headings and Text === */
.test-heading {
    font-size: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #333;
}

.test-paragraph,
.test-list li {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    text-align: right;
}

.test-list {
    padding-left: 18px;
    margin-bottom: 10px;
}

.test-list li {
    margin-bottom: 5px;
}

/* === Form Styles === */
.test-form form {
    display: flex;
    flex-direction: column;
}

.test-group {
    margin-bottom: 15px;
}

.test-label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #222;
}

.test-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
}

.test-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* === Checkbox === */
.test-checkbox-group {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
}

.test-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    
}

/* === Button === */
.test-button {
    background-color: #007bff;
    color: white;
    padding: 12px 140px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.test-button:hover {
    background-color: #13219d;
}

/* === moblie customization to test === */
@media (max-width: 768px) {
    .test-form-wrapper {
        flex-direction: column;
        padding: 20px 10px;
    }

    .test-section,
    .test-info,
    .test-form {
        max-width: 100%;
    }

    .test-heading {
        font-size: 18px;
    }

    .test-input {
        font-size: 15px;
    }

    .test-button {
        width: 100%;             /* Make it full-width on mobile */
        padding: 12px 0;         /* Adjust padding */
        font-size: 15px;         /* Slightly larger for readability */
    }

    .test-form {
        order: -1; /* Move the form to the top on small screens */
    }

    .test-checkbox-group label {
        font-size: 14px;
    }
}

/*this css stylung for thank you page to show score and level nice looking to tester*/
.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 140px); /* 100% screen height minus navbar+footer */
    padding: 0 10px;
    margin: 0;
}


.thank-you-box {
    background-color: #fdfffd;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    width: 100%;
    text-align: center;
    border: 2px solid #20c997;
    
}

.thank-you-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #20c997;
    font-weight: bold;
}

.thank-you-message {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
}

.score-box {
    background-color: #e6fff1;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #28a745;
    font-size: 18px;
    color: #155724;
}


@media (max-width: 768px) {
    .thank-you-box {
        padding: 30px 20px;
    }

    .thank-you-title {
        font-size: 26px;
    }

    .thank-you-message,
    .score-box {
        font-size: 16px;
    }
}


/*this styling to show question page*/
.test-questions-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.test-question-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    padding: 25px 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.test-question-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.test-choices {
    list-style: none;
    padding: 0;
}

.test-choices li {
    margin-bottom: 10px;
}

.test-choices input[type="radio"] {
    display: none;
}

.test-choices label {
    display: block;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: background 0.2s ease;
}

.test-choices input[type="radio"]:checked + label {
    background-color: #d6f5e9;
    border-color: #28a745;
    font-weight: bold;
}

.test-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.test-nav-buttons button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.test-prev-btn {
    background-color: #6c757d;
    color: white;
}

.test-next-btn {
    background-color: #007bff;
    color: white;
}

.test-next-btn:hover {
    background-color: #0056b3;
}

.test-submit-btn {
    background-color: #28a745;
    color: white;
}

.test-submit-btn:hover {
    background-color: #1e7e34;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .test-question-title {
        font-size: 17px;
    }

    .test-nav-buttons {
        flex-direction: column;
    }
}


/* this is styling for sutdents_with_debt page action buttons , view/alert with whats*alert with email */
/* Scoped only to the table actions column */
.student-alert-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Optional: adjust button size inside this group */
.student-alert-buttons .btn {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 8px;
}

/* Optional: WhatsApp green color */
.student-alert-buttons .btn-save {
    background-color: #25D366;
    color: white;
    border: none;
}

/* Optional: Email bell yellow */
.student-alert-buttons .btn-remind {
    background-color: #FFC107;
    color: white;
    border: none;
}

/* Optional: View button stays classic */
.student-alert-buttons .btn-view {
    background-color: #007BFF;
    color: white;
    border: none;
}

@media (max-width: 480px) {
  /* Stack student alert buttons on small screens */
  .student-alert-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .student-alert-buttons .btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Stack action buttons (edit, delete, etc.) */
  .action-btn {
    min-width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }

  .action-btn i {
    font-size: 15px;
  }
}




/* Universal button style  for delte, edit, record, print for buttons in view{student, teacher, employee, transaction}*/
.action-btn {
    min-width: 110px;           /* Ensures same width across buttons */
    text-align: center;
    padding: 8px 12px;          /* More balanced padding */
    font-size: 14px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;    /* Center icons + text */
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
}

/* Optional: fix icon size if some icons are larger than others */
.action-btn i {
    font-size: 16px;
}


/* Pay (Collect) - Green */
.btn-pay {
    background-color: #28a745;
}
.btn-pay:hover {
    background-color: #1e7e34;
}

/* Record - Gray */
.btn-record {
    background-color: #6c757d;
}
.btn-record:hover {
    background-color: #5a6268;
}

/* Edit - Orange */
.btn-edit {
    background-color: #ffc107;
    color: black;
}
.btn-edit:hover {
    background-color: #e0a800;
}

/* Delete - Red */
.btn-delete {
    background-color: #dc3545;
}
.btn-delete:hover {
    background-color: #c82333;
}


/* ✅ Responsive tweaks for .action-btn buttons */
@media (max-width: 768px) {
  .action-btn {
    flex: 1 1 calc(50% - 10px);  /* 2 buttons per row, auto-resize */
    min-width: unset;            /* Remove fixed min-width */
    padding: 10px;               /* Slightly more touch-friendly */
    font-size: 15px;             /* Slightly bigger on mobile */
    border-radius: 10px;
  }

  .group-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .group-actions form {
    width: 100%;
  }

  .group-actions .action-btn {
    width: 100%;   /* Stack buttons if needed */
  }
}



/* this styling for big buttones above all tables in all listing pages, like list student ect. */
.btn-wide {
  min-width: 140px;          /* Force consistent width */
  padding: 8px 10px;        /* Consistent padding */
  font-size: 15px;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;                  /* spacing between icon and text */
  text-align: center;
}

@media (max-width: 480px) {
  .btn-wide {
    min-width: auto;
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}


/*  this fix togle username on mobile*/
.username-toggle {
  position: relative;
  display: inline-block;
  max-width: 180px;      /* Add max width to prevent overflow */
  overflow: hidden;
}

.username-toggle input {
  border: none;
  background: transparent;
  font-weight: bold;
  width: 100%;
  font-size: 14px;
}




/* 🌐 Desktop & Shared Styles */
/* ============================================================
   📄 Transactions Page - Mobile Friendly
   ============================================================ */
.transactions-wrapper {
    
    margin: 0 auto;
}

.transactions-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* ✅ Stack on mobile */
    gap: 10px;
    margin-bottom: -15px; /* Add spacing below the header */
    margin-top: 30px;
}

.transactions-right-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;         /* ✅ Stack filter + buttons on mobile */
    gap: 10px;
    justify-content: flex-end;
}

.transactions-right-controls label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
}

#filterRestCheckbox {
    margin-right: 5px;
}

@media (max-width: 768px) {
  .transactions-wrapper {
    width: 100%;
    padding: 0 10px;
  }

  .transactions-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }

  .transactions-right-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }

  .transactions-right-controls label {
    justify-content: flex-start;
  }

  .transactions-right-controls .btn,
  .transactions-right-controls form,
  .transactions-right-controls a {
    width: 100%;
    display: block;
  }

  .transactions-right-controls input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }
}

/*this is for making the transaction, admin attendence and settings pages have constant space betwen tables and navbars*/
.students-content.no-top-padding {
  padding-top: 25px; /* override for 2 navbar pages */
}

 

/* Desktop: Optional overrides (inherits student-list-table styles) */
.payment-history-table {
    width: 120%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}


/* this is to make last tables inside view student and view group to be same width with above table on small screens*/
.wide-table-wrapper {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
}

.wide-table-wrapper table {
    min-width: 1000px;  /* Adjust depending on how many columns */
}

/*============================================================
✨ well done Css stling works perfectlly on both desktop and Mobile
============================================================ */






























 











































    


































 











































    







 




























 











































    


































 











































    







