
   body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
    font-family: sans-serif;
    background-color: #f8f9fa; 
    color: #222; 
  }

  .top-navbar {
    background-color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
    font-size: 1rem; /* base font size */
    color: #333; /* text color */
    
  }

  .top-navbar .left-section {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
  }

  .top-navbar .logo-icon {
    font-size: 1.6rem; /* slightly bigger */
    color: #333333;
  }

  .top-navbar .school-name {
    font-weight: 600;
    font-size: 1.15rem; /* slightly bigger */
    color: #333;
  }

  .toggle-btn {
    font-size: 1.3rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease; /* hover transition */
  }

  .toggle-btn:hover {
    color: #007bff;
  }

  .right-section .user-img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent; /* border */
    transition: border-color 0.3s ease; /* hover transition */
  }

  .right-section .user-img:hover {
    border-color: #007bff; /* highlight on hover */
  }

  .right-section .school-name-text {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
  }

  .dropdown-toggle-icon {
    font-size: 0.9rem;
    cursor: pointer;
    color: #666; /* lighter for subtlety */
    transition: color 0.3s ease;
  }

  .dropdown-toggle-icon:hover {
    color: #007bff;
  }

.sidebar {
  width: 250px;
  height: calc(100vh - 53px);
  background-color: #000;
  color: #fff;
  padding: 1rem 0.5rem;
  overflow-y: auto; /* ENABLE SCROLL */
  overflow-x: hidden;
  position: fixed;
  top: 53px;
  left: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1029;
  font-size: 0.95rem;
}


  .sidebar.collapsed {
    width: 70px;
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    color: #fff;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 5px;
    gap: 10px;
    transition: background 0.2s ease, color 0.2s ease; /* hover transition */
  }

  .nav-link:hover {
    background-color: #1e1e1e;
    color: #00ff00;
    box-shadow: 0 0 8px #00ff00aa; /* glow effect */
  }

  .dropdown-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: #888;
    transition: color 0.3s ease;
  }

  .nav-link:hover .dropdown-icon {
    color: #00ff00;
  }

  .submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    background-color: #fff;
  color: #000;
  border-radius: 5px;
  padding: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
       
  }

  .submenu li a {
    color: #000;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px; /* rounded */
    transition: background-color 0.25s ease, color 0.25s ease; /* hover transition */
  }

  .submenu li a:hover {
    color: #fff;
    background-color: #333;
  }

  .session-title {
    color: #ffc107;
    font-weight: bold;
    font-size: 1rem;
  }
.floating-submenu {
  background-color: #111;
  color: #fff;
  min-width: 180px;
  padding: 0.5rem 0;
  display: none;
  position: fixed;
  z-index: 9999;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
}






  .floating-submenu li a {
  color: #ccc;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-submenu li a:hover {
  background-color: #00ff00;
  color: #000;
}

  .sidebar.collapsed .has-floating:hover > .floating-submenu {
    display: block;
  }

  .sidebar.collapsed .collapse {
    display: none !important;
  }

  .sidebar.collapsed .nav-link span,
  .sidebar.collapsed .nav-link .dropdown-icon {
    display: none;
  }
  .sidebar.collapsed .nav-link {
 justify-content: center; /* center the icon */
  padding: 0.65rem 0.5rem;
  pointer-events: auto; 
  position: relative;/* enable hover, even though click is disabled */
}


   .main-content {
    margin-left: 250px;
    padding: 1rem;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: #fff; 
    min-height: calc(100vh - 53px);
    border-radius: 8px 0 0 8px; 
  /* margin-top: 14px;  */
   }
   

  .sidebar.collapsed ~ .main-content {
    margin-left: 70px;
  }

  .sidebar.collapsed .sidebar-header {
    display: none;
  }

  .nav-item.active > .nav-link {
    color: #00ff00aa; /* active color */
    font-weight: 600;
  }
  .sidebar.collapsed .nav-link:hover {
  background-color: #1e1e1e;
  color: #00ff00;
  box-shadow: 0 0 8px #00ff00aa; /* glow effect */
}

/* Optional: change only the icon color */
.sidebar.collapsed .nav-link i {
  color: #ccc;
  transition: color 0.3s ease;
}

.sidebar.collapsed .nav-link:hover i {
  color: #00ff00;
}



 

  /* ============= Responsive ============= */

  @media (max-width: 768px) {
    .top-navbar {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.5rem;
    }

    .top-navbar .left-section,
    .top-navbar .right-section {
      width: 100%;
      justify-content: space-between;
    }

    /* Sidebar slides in/out instead of collapsing */
    .sidebar {
      width: 250px; /* full width when visible */
      height: 88vh;
      position: fixed;
      top: 5rem;
      left: 0;
      transform: translateX(0);
      transition: transform 0.3s ease;
    }

    .sidebar.collapsed {
      transform: translateX(-100%);
    }

    .main-content {
      margin-left: 0 !important;
      border-radius: 0;
      padding: 0.75rem;
    }

    /* Keep floating submenus static on small screens */
    .floating-submenu {
      position: static;
      box-shadow: none;
    }
  }

  @media (max-width: 576px) {
    .top-navbar {
      font-size: 0.95rem;
    }

    .top-navbar .school-name {
      font-size: 1rem;
    }

    .top-navbar .logo-icon {
      font-size: 1.4rem;
    }

    .right-section .school-name-text {
      font-size: 0.85rem;
    }

    .main-content {
      padding: 0.75rem;
    }
  }
   @media (max-width: 768px) {
  .running-note-wrapper {
    top: 80px; /* Adjust based on navbar */
  }
  .running-note {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .running-note-wrapper {
    top:75px;
  }
  .running-note {
    font-size: 0.8rem;
  }
}


/*----------------------------------------------------- END top navar & sidenavat with running note---------------------------------------- */

/* Responsive Fix */
@media (max-width: 768px) {
    .main-content {
        width: 100%;
        margin-left: 0;
    }
}
.table th,
.table td {
  vertical-align: middle;
  font-size: 15px;
}

.table th {
  background-color: #f1f9ff;
  color: #333;
  font-weight: 600;
}

input.form-control {
  border-radius: 0.375rem;
  max-width: 300px;
}

.card {
  border-radius: 8px;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }
}



.card-header-custom {
      background: #000;
      padding: 15px 20px;
      border-bottom: 2px solid #dee2e6;
    }

    .card-header-custom h5 {
      margin: 0;
      font-weight: 600;
      color: #343a40;
    }

    .form-label {
      font-weight: 500;
    }

    .btn-custom {
      border-radius: 6px;
      background-color: #018b21;
    }

    .dataTables_wrapper .dt-buttons {
      margin-bottom: 15px;
    }

    @media (max-width: 767px) {
      .btn-wrapper {
        justify-content: start !important;
        margin-top: 10px;
      }
    }
 
/* -----------------------------syllabus ------------------------*/
.syllabus-container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.syllabus-container h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #003366;
  text-align: center;
}

.form-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

label span {
  color: red;
}

select {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fdfdfd;
  transition: all 0.3s ease;
}

select:focus {
  border-color: #007bff;
  outline: none;
}

.submit-btn {
  flex: 1 1 100%;
  text-align: center;
}

.submit-btn button {
  padding: 12px 28px;
  font-size: 16px;
  background-color: #018b21;
  border: none;
  color: #fff;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn button:hover {
  background-color: #0056b3;
}
 



/* t-----------------------teacher----------------------- */
   .teacher-heading {
  background: linear-gradient(135deg, #000000, #1a1a1a, #333333);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  display: inline-block;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc;
  }
  to {
    box-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc;
  }
}

.heading {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
}

.table-responsive {
  overflow-x: auto;
}

table thead {
  background-color: #4b7bec;
  color: white;
}

table td img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.dt-buttons .dt-button {
  margin-right: 5px;
  background-color: #4b7bec !important;
  border: none !important;
  color: white !important;
  border-radius: 5px;
  padding: 6px 12px;
  font-weight: 500;
}

.dataTables_filter input {
  border-radius: 4px;
  padding: 4px 10px;
  border: 1px solid #ccc;
}

/* Make top toolbar sticky */
.toolbar-container {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 999;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
}


.list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.list-group-item {
  cursor: pointer;
}


 .action-buttons button {
      margin-right: 8px;
    }
    .table-responsive {
      margin-top: 20px;
    }
    .top-bar {
      flex-wrap: wrap;
      gap: 1rem;
    }
   @media (max-width: 576px) {
  .top-bar-custom {
    flex-direction: column;
    align-items: stretch !important;
  }

  .top-bar-custom .action-buttons {
    justify-content: flex-start;
  }

  .top-bar-custom .search-bar {
    margin-top: 10px;
    width: 100%;
  }
}
/*---------------- fees-history ----------------*/

    .page{
      width: 900px;
      /* margin: 8px auto; */
      background: #fff;
      box-shadow: 0 6px 24px rgba(0,0,0,.06);
      border-radius: 8px;
      padding: 28px 26px;
    }

    .brand-bar{
      border-left: 5px solid #4CAF50; /* Replaced var(--brand) */
      padding-left: 12px;
      margin-bottom: 5px;
    }
 .brand-bar h4{
      font-size: 1.25rem;
 }
    .title{
      font-size: 1.25rem;
      font-weight: 600;
      color: #111;
    }

    .meta-label{
      color: #6c757d;
      font-size: .85rem;
      margin-bottom: 2px;
    }

    .badge-status{
      background: #4CAF50; }

    .totals-card{
      background: #f6fff7;
      border: 1px solid #4CAF50;
    }

    .totals-card .value{
      font-size: 1.15rem;
      font-weight: 600;
      color: #111;
    }

    .totals-card .label{
      font-size: .85rem;
      color: #6c757d;
    }

    .table thead th{
      background: #4CAF50; /* Replaced var(--brand) */
      color: #fff;
    }

    .sign-box{
      border-top: 1px dashed #bbb;
      padding-top: 36px;
      text-align: center;
      color: #6c757d;
      font-size: .9rem;
    }

    .print-actions{
      position: sticky;
      top: 0;
      z-index: 1020;
      background: #fff;
      padding: 12px 0 0;
      display: flex;
      justify-content: flex-end;
      gap: .5rem;
    }
   .fee-title {
  font-size: 1.5rem;  
  font-weight: 600;   
  color: #111;        
}


    @media print{
      body{
        background: #fff !important;
      }
      .page{
        box-shadow: none !important;
        margin: 0;
        max-width: 100%;
        border: none;
        border-radius: 0;
      }
      .print-hide{
        display:none !important;
      }
    }

/* ----------------fees trasanction------------------------------------*/
   .page-title {
      font-size: 1.6rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
    }

    .date-range {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 20px;
    }

    .table thead th {
      background-color: #4CAF50;
      color: #fff;
      text-align: center;
    }

    .table tbody td {
      text-align: center;
    }

    .grand-total-box {
      background: #f1f5f9;
      border-radius: 6px;
      padding: 12px 15px;
      margin-top: 15px;
      font-weight: 600;
      color: #333;
    }

    .footer-text {
      text-align: center;
      font-size: 0.85rem;
      color: #666;
      margin-top: 20px;
    }

    .dt-buttons .btn {
      margin-right: 5px;
    }

    @media (max-width: 768px) {
      .page-title {
        font-size: 1.25rem;
      }
    }

/* ----------Notice board -----------------*/

      .notice-card {
      border-left: 5px solid #0d6efd;
      background: #ddcece;
      padding: 15px 20px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      margin-bottom: 15px;
      border-radius: 8px;
    }
    .notice-title {
      font-weight: 600;
      color: #0d6efd;
    }
    .notice-date {
      font-size: 0.9rem;
      color: #6c757d;
    }
    .notice-description {
      margin: 10px 0;
      font-size: 0.95rem;
    }
    .btn-view {
      padding: 5px 12px;
      font-size: 0.875rem;
    }
    @media (max-width: 576px) {
      .notice-description {
        font-size: 0.9rem;
      }
    }

/* -------------------------Profile details------------------------------ */
    /* Style the full nav tabs container */
#profileTabs {
  background-color: #f8f9fa; /* light background */
  border-radius: 8px;
  padding: 5px 10px;
  border: 1px solid #4c4d4e;
}

/* Style each nav-item (presentation role) */
#profileTabs .nav-item[role="presentation"] {
  margin-right: 10px;
}

/* Style the nav-link buttons */
#profileTabs .nav-link {
  color: #333;
  font-weight: 500;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Hover effect */
#profileTabs .nav-link:hover {
  background-color: #d8dee3;
  color: #000;
}

/* Active tab styling */
#profileTabs .nav-link.active {
  background-color: #0d6e;
  color: #000;
  border-color: #00ff00;
}


/* ----------------------attendance------------------------ */

    .calendar-section {
      flex: 2;
      padding: 20px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
      margin-top: 20px;
    }

    .day {
      padding: 20px;
      border-radius: 8px;
      text-align: center;
      cursor: pointer;
      background: #f1f1f1;
      position: relative;
    }

    .present {
      background-color: #a5d6a7;
    }

    .absent {
      background-color: #ef9a9a;
    }

    .pending {
      background-color: #ffe082;
    }

    .day span {
      font-size: 12px;
      display: block;
      margin-top: 4px;
      color: #fff;
      font-weight: bold;
    }

    .present span {
      background: green;
      padding: 2px 5px;
      border-radius: 4px;
    }

    .absent span {
      background: red;
      padding: 2px 5px;
      border-radius: 4px;
    }

    .pending span {
      background: orange;
      padding: 2px 5px;
      border-radius: 4px;
    }

    .pending-section {
      flex: 1;
      padding: 20px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      max-height: 90vh;
      overflow-y: auto;
    }

    .pending-section h3 {
      margin-bottom: 10px;
    }

    .pending-item {
      padding: 10px;
      background-color: #e0f7fa;
      border: 1px solid #b2ebf2;
      border-radius: 6px;
      margin-bottom: 10px;
    }

    .approve-btn {
      margin-top: 5px;
      padding: 5px 10px;
      background-color: #4caf50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    .approve-btn:hover {
      background-color: #388e3c;
    }

    /* .modal {
      position: fixed;
      display: none;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(4px);
      justify-content: center;
      align-items: center;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    .modal-content {
      background-color: white;
      padding: 20px;
      border-radius: 8px;
      position: relative;
    }

    .modal-content input,
    .modal-content select {
      width: 100%;
      margin-bottom: 10px;
      padding: 8px;
    } */

    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      cursor: pointer;
      font-size: 18px;
    }

    @media (max-width: 768px) {
      .main-content {
        flex-direction: column;
      }
    }


/* ---------------calender section------------------------------ */
/* 
        .main-content {
      display: flex;
      gap: 20px;
      padding: 20px;
      flex-wrap: wrap;
    } */
    .calendar-section {
      flex: 2;
      min-width: 300px;
      background: #fff;
      padding: 20px;
      border-radius: 12px;
    }
    .notification-section {
      flex: 1;
      min-width: 250px;
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
      position: relative;
    }
    .fc-daygrid-day {
      cursor: pointer;
    }
    .present { background-color: #107427ff !important; }
    .absent { background-color: #f31023ff !important; }
    .late { background-color: #efba0cff !important; }
    .notification-badge {
      position: absolute;
      top: 10px;
      right: 20px;
      background: red;
      color: white;
      font-size: 12px;
      padding: 3px 7px;
      border-radius: 50%;
    }
    /* Modal styles */
    .modal-custom {
      display: none;
      position: fixed;
      z-index: 1050;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0,0,0,0.7);
      align-items: center;
      justify-content: center;
    }
    .modal-custom.show {
      display: flex;
    }
    .modal-content-custom {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      width: 100%;
      max-width: 500px;
      position: relative;
    }
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .modal-title {
      margin: 0;
      font-weight: bold;
    }
    .btn-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
    }


    /* ================= Online Classes Table Section ================= */
 .toolbar-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        .action-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .search-box {
            min-width: 250px;
        }
        .meeting-link {
            cursor: pointer;
            color: #0d6efd;
            text-decoration: underline;
        }
        .pagination-container {
            margin-top: 20px;
        }
        @media (max-width: 576px) {
            .toolbar-row {
                flex-direction: column;
                align-items: flex-start;
            }
            .search-box {
                width: 100%;
            }
        }

        /*------------ dashboard----------------- */
        /* ==== HEADER ==== */
/* Top Banner */
.top-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  border-radius: 12px;
}

.student-name {
  color: #22c55e;
}

/* Circle Stat Cards */
.circle-card {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  text-align: center;
}

.circle-card:hover {
  transform: scale(1.05);
}

.circle-card h3 {
  font-weight: bold;
  margin: 0;
}

.circle-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Custom Card */
.custom-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-title {
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

/* Schedule List */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
}

.subject {
  font-weight: 500;
}

.subject.math { color: #2563eb; }
.subject.sci { color: #16a34a; }
.subject.eng { color: #f59e0b; }
.subject.hist { color: #06b6d4; }

/* Assignments */
.assignment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.assignment-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  font-weight: 500;
}

.assignment-list li span {
  float: right;
  font-size: 0.85rem;
  color: #555;
}

.assignment-list li.high { color: #dc2626; }
.assignment-list li.medium { color: #d97706; }
.assignment-list li.low { color: #16a34a; }

/* Announcements */
.announcement {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.announcement.high { background: #fee2e2; }
.announcement.medium { background: #fef3c7; }

/* Quick Links */
.quick-links {
  display: grid;
  gap: 10px;
}

.ql-btn {
  border: none;
  color: white;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ql-btn i {
  font-size: 1.2rem;
}


