/* ===================== Reset & Base ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}
/* ===================== school fees style  ===================== */
 .status-paid    { color: green; font-weight: bold; }
        .status-partial { color: orange; font-weight: bold; }
        .status-pending { color: red; font-weight: bold; }
        .fee-form-container { max-width: 700px; margin: auto; padding: 20px; }
        .fee-form-container label { display: block; margin-top: 10px; }
        .fee-form-container select, 
        .fee-form-container input { width: 100%; padding: 8px; margin-top: 4px; }
        .receipt { margin-top: 20px; border: 1px solid #ccc; padding: 15px; border-radius: 5px; }
        .receipt table { width: 100%; border-collapse: collapse; }
        .receipt td { padding: 5px; }
        .btn { padding: 8px 15px; margin: 5px; cursor: pointer; border: none; border-radius: 5px; }
        .btn:hover { opacity: 0.9; }

/* ===================== Buttons ===================== */

.print-button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

@media print {.non-print {
  display:none;
}
}
.print-button {
  background-color: #4caf50;
  color: #fff;
}

.print-button:hover {
  background-color: #3e8e41;
}

.btn {
  background-color: #007bff;
  color: #fff !important;
   padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
margin-top: 8px;
}

.btn:hover {
  background-color: #0056b3;
}

/* ===================== Report Card ===================== */
  /* Report Card Container */
            .report-card {
                position: relative;
               
                margin-bottom: 40px;
                background: #fff;
                border: 1px solid transparent;
                border-radius: 12px;
                background-image: linear-gradient(#fff, #fff),
                linear-gradient(45deg, #4cafef, #2196f3, #673ab7);
                background-origin: border-box;
                background-clip: content-box, border-box;
                box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            }
            /* Header */
            .header { text-align: center; margin-bottom: 20px; }
            .header h2 {
                font-size: 24px; color: #2c3e50; margin-bottom: 5px;
                text-transform: uppercase; letter-spacing: 1px;
            }
            .header p { font-size: 14px; color: #555; margin: 0; }
            .school-logo { max-height: 80px; margin-bottom: 10px; }
            /* Tables */
            table {
                border-collapse: collapse;
                width: 100%;
                margin: 20px 0;
               
                border-radius: 8px;
                overflow: hidden;
            }
            th {
                background-color:#fff;
                color: #000;
                font-weight: bold;
                padding: 10px;
                text-transform: uppercase;
            }
            td {
                padding: 8px;
                border: 1px solid #ddd;
                text-align: center;
				font-size: 20px;
				font-weight: bold;
            }
            tbody tr:nth-child(even) { background: #f9f9f9; }
            tfoot th { background: #f1f1f1; color: #222; font-weight: bold; }
            /* Section blocks */
            .section {
                margin: 25px 0;
                padding: 15px;
                background: #fafafa;
                border-radius: 8px;
                border-left: 4px solid #2196f3;
            }
     .section strong { margin: 0 0 10px; color: #fff; font-size: 16px; }
            .section h4 { margin: 0 0 10px; color: #000; font-size: 16px; }
            /* Signature Area */
            .signature {
                margin-top: 60px;
                display: flex;
                justify-content: space-between;
                font-size: 14px;
                font-style: italic;
            }
            .signature div {
                text-align: center;
                width: 45%;
                border-top: 1px solid #444;
                padding-top: 5px;
            }
            /* Watermark */
            .watermark {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                opacity: 0.03;
                pointer-events: none;
            }
            .watermark img { width: 350px; height: auto; }
            
          
            /* Page break for printing */
            .page-break { page-break-after: always; }

.bio {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  flex-wrap: wrap;
}

.bio .photo img {
  border-radius: 10px;
  width: 100px;
  height: 100px;
}

.bio-details {
  flex: 1;
  margin-left: 20px;
}

.bio-details p {
  margin: 6px 0;
}

.school-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.school-info h1 {
  text-transform: uppercase;
  color: #07010a;
  font-size: 2rem;
}

.school-logo,
.school-stamp {
  width: 80px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.school-stamp {
  opacity: 0.5;
}
.student-list {
            max-height: 250px;
            overflow-y: auto;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 10px;
            background: #fdfdfd;
        }
        .student-item {
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .text-danger { color: red; }
        .text-muted { color: #777; }




/* Print */
@media print {
  .report-card {
    box-shadow: none;
	  font-size:1.6rem;
  }
  .print-button {
    display: none;
  }
}

/* ===================== Dashboard ===================== */
.dashboard-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0c3769;
    padding: 10px 20px;
    color: #fff;
    width: 100%;
    flex-wrap: wrap; /* ✅ allow wrapping */
}

/* Dashboard navigation */
.menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* ✅ wrap items if small screen */
}
.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
	text-transform:capitalize;
}
.menu li a:hover {
    color: #ffd700;
}

.user {
    margin-left: auto;
    font-size: 14px;
    font-weight: bold;
}

.toggle-label {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

/* Cards */
.card {
  flex: 1 1 200px;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card h5 {
  margin-bottom: 10px;
}
.card-text {
  font-size: 1.5em;
}

/* Table Wrapper */
.table-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}
.table-container th,
.table-container td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}
.table-container th {
  background-color: #4CAF50;
  color: #fff;
}
.table-container tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ===================== Responsive Fixes ===================== */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .user {
    margin: 10px 0 0 0;
    width: 100%;
    text-align: right;
  }
}

/* Footer */
.footer {
  font-size: 1.5rem;
  color: #ccc;
  background-color: #07010a;
  padding: 20px;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}


/* ===================== Profile Page ===================== */
.page-wrapper {
  max-width: 960px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid #e3e3e3;
  padding-top: 20px;
}

.profile-view {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-img-wrap img.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
}

.user-name {
  font-size: 22px;
  font-weight: bold;
  text-transform: capitalize;
}

.role-label {
  color: #888;
  font-size: 14px;
}

.personal-info {
  list-style: none;
  padding: 0;
}

.personal-info li {
  display: flex;
  margin-bottom: 8px;
  font-size: 15px;
}

.personal-info .title {
  width: 140px;
  font-weight: 600;
  color: #444;
}

.profile-tabs {
  margin-top: 30px;
}

.tabs {
  list-style: none;
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  padding-left: 0;
}

.tabs li {
  margin-right: 20px;
}

.tabs a {
  padding: 10px 15px;
  display: inline-block;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tabs a.active {
  font-weight: 600;
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  display: none;
}

.tab-content:first-child {
  display: block;
}

.education-list {
  list-style: none;
  padding: 0;
}

.education-list li {
  margin-bottom: 15px;
  background-color: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

.education-list li p {
  margin: 4px 0;
}

/* ===================== Media Queries ===================== */
@media (max-width: 768px) {
  .col-md-4, .card {
    flex: 1 1 100%;
  }

  .card-title {
    font-size: 1em;
  }

  .card-text {
    font-size: 1.2em;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .menu li {
    display: block;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 600px) {
  table, .table-container th, .table-container td {
    font-size: 14px;
    padding: 8px;
  }

  h2 {
    font-size: 18px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }
}
/* Sidebar Base */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* hidden by default */
  width: 240px;
  height: 100%;
  background: #021324;
  color: #fff;
  padding: 20px 15px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.4);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

/* Toggle Button */
#sidebarToggle {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #021324;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1100;
  transition: background 0.3s ease;
}
#sidebarToggle:hover {
  background: #043466;
}

/* Submenu labels */
.toggle-label {
  display: block;
  font-weight: 600;
  margin: 12px 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
	text-transform:capitalize;
}
.toggle-label:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #4db8ff;
}

/* Submenu links */
.submenu {
  display: none;
  padding-left: 15px;
  margin-bottom: 8px;
}
.submenu.show {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  margin: 4px 0;
  text-decoration: none;
  color: #ddd;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 14px;
text-transform:capitalize;
}
.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Role headers */
.sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4db8ff;
}

/* Main wrapper shift */
.main-wrapper.shift {
  margin-left: 240px;
  transition: margin-left 0.3s ease;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: #021324;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #043466;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  .main-wrapper.shift {
    margin-left: 200px;
  }
}
@media (max-width: 576px) {
  .sidebar {
    width: 100%;
    left: -100%;
  }
  .main-wrapper.shift {
    margin-left: 0;
  }
}

/* Sidebar basic end */
.filter { text-align: center; 
margin: 20px 0; text-align: center;  max-width: 600px; margin: 0 auto;}
.msg { color: red; text-align: center; font-size: 1.2rem; }

/* Summary bar */
.summary { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.summary div { padding: 10px 15px; border-radius: 5px; font-weight: bold; color: #fff; }
.present-summary { background-color: #28a745; }
.late-summary { background-color: #ffc107; color: #212529; }
.still-summary { background-color: #007bff; }
.absent-summary { background-color: #dc3545; }
/* Status colors */
.present { background-color: #d4edda; color: #155724; }
 .still_in_school { background-color: #cce5ff; color: #004085; }
.late { font-weight: bold; color: #856404; }
.absent { background-color: #f8d7da; color: #721c24; }
 .early_exit { font-weight: bold; color: #856404; }
       
/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}
.alert.error { background: #ffe0e0; color: #b30000; border: 1px solid #cc0000; }
.alert.success { background: #e6ffed; color: #006600; border: 1px solid #009933; }

/* Card */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card h3 { margin-bottom: 15px; }

/* Form */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 6px; font-weight: bold; }
.form-group input, 
.form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}


/* Invoice style  */
  .invoice-container {
            max-width: 100%;
            width: 100%;
            margin: auto;
            padding: 25px;
        }

        .invoice-container h4,
        .invoice-container h5,
        .invoice-container p,
        .invoice-container td,
        .invoice-container th {
            font-weight: bold;
        }

        @media print {
            body {
                margin: 0;
                padding: 0;
                -webkit-print-color-adjust: exact;
            }

            .btn, .btn-group, a {
                display: none !important;
            }

            html, body {
                width: 100%;
                height: 100%;
                overflow: hidden;
            }
        }
/* general form container style  */
.container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.container h2,h4, h3 {
  text-align: center;
  color: #333;
  font-size: 1.6rem;
}
.container p,strong {
  color: #fd0;
  font-size: 1.4rem;
}
.meta {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}
.container img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}
.content {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  white-space: pre-wrap;
}
.actions {
  text-align: center;
  margin-top: 25px;
}

.approve { background: #28a745; }
.reject { background: #dc3545; }
.back { background: #007bff; }
.success { color: #28a745; text-align: center; font-weight: bold; }
.error { color: #dc3545; text-align: center; font-weight: bold; }
.bank-details strong { display: inline-block; width: 130px; }
.form-control{
           width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
			font-size:1.3rem;
        }
.form-label{
          font-size: 1.8rem; 
			font-weight: 600;
            margin-bottom: 5px;
            display: block;
        }

.search-box { display: flex; gap: 8px; margin-bottom: 12px; }
.pagination { margin-top: 15px; display: flex; justify-content: center; gap: 6px; }
.pagination a { padding: 6px 10px; border: 1px solid #ccc; border-radius: 5px; text-decoration: none; }
.pagination a.active { background: #007bff; color: #fff; }
.alert{padding:12px;border-radius:8px;margin-bottom:16px}
.alert-success{background:#d4edda;color:#155724}
.alert-danger{background:#f8d7da;color:#721c24}
#preview{border:1px solid #ddd;border-radius:8px;background:#fff;margin-top:20px;overflow:hidden}
.email-header{background:#430f58;color:#fff;text-align:center;padding:14px}
.email-body{padding:18px}
.email-footer{background:#f0f0f0;color:#333;padding:12px;text-align:center;font-size:13px}
 .tab-buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin: 15px 0;
      flex-wrap: wrap;
    }
    .tab-buttons button {
      background: #0c3769;
      color: white;
      border: none;
      padding: 10px 18px;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.3s;
    }
    .tab-buttons button.active { background: #2196f3; }
    .card { display: none; animation: fadeIn 0.4s ease-in-out; }
    .card.active { display: block; }
    @keyframes fadeIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
    .parent-photo {
      display:block;
      margin:0 auto 10px;
      width:120px;
      height:120px;
      border-radius:50%;
      border:3px solid #0c3769;
      object-fit:cover;
    }
  