@import url('./common.css');
  :root {
    --sidebar-w: 220px;
    --sidebar-collapsed-w: 64px;
    --topbar-h: 60px;
    --bg: #f4f6fb;
    --card: #fff;
    --border: #E5E7EB;
    --text: #1a2340;
    --muted: #4A5565;
    --blue: #3b82f6;
    --green: #00b894;
    --purple: #7c3aed;
    --orange: #f59e0b;
    --teal: #0d9488;
    --cyan: #06b6d4;
    --red: #ef4444;
    --sidebar-bg: #ffffff;
    --sidebar-border: #e8ecf0;
    --sidebar-text: #364153;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); display: flex; height: 100vh; overflow: hidden; }

  #sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex; flex-direction: column;
    height: 100vh; position: fixed; left: 0; top: 0; z-index: 200;
    transition: width 0.25s ease; overflow: hidden;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
  }
  #sidebar.collapsed { width: var(--sidebar-collapsed-w); }

  .sidebar-brand {
    padding: 14px; border-bottom: 1px solid var(--sidebar-border);
    display: flex; align-items: center; justify-content: space-between; min-height: 64px;
  }
  .brand-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
  .brand-info .brand-text a img{
    width: 120px;
  }
  .brand-logo { display: flex; align-items: center; gap: 8px; }
  .logo-svg { flex-shrink: 0; width: 34px; height: 34px; }
  .brand-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; transition: opacity 0.2s; }
  .brand-tagline { font-size: 9px; color: var(--muted); white-space: nowrap; margin-left: 42px; letter-spacing: 1px; text-transform: uppercase; }
  .brand-sub {
    font-size: 16px;
    font-weight: 400;
    color: #6A7282;
    border-radius: 10px;
    white-space: nowrap;
    margin-top: 3px;
    width: fit-content;
    margin: 6px 0px 0px 0px;
}

  .collapse-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.25s;
    font-size: 18px;
    position: relative;
    margin-top: -33px;
}
  .collapse-btn:hover { background: var(--border); color: var(--text); }
  #sidebar.collapsed .collapse-btn { transform: rotate(180deg); }

  .sidebar-nav { flex: 1; padding: 8px 6px; overflow-y: auto; overflow-x: hidden; }
  .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    border-radius: 7px;
    margin-bottom: 5px;
    border-left: 3px solid transparent;
  }
  .sidebar-nav a:hover { background: #eff6ff; color: var(--blue); }
  .sidebar-nav a.active { background: #eff6ff; color: var(--blue); font-weight: 600; border-left-color: var(--blue); }
  .sidebar-nav a i { font-size: 15px; flex-shrink: 0; min-width: 18px; text-align: center; }
  .nav-label { transition: opacity 0.2s; }
  #sidebar.collapsed .nav-label,
  #sidebar.collapsed .brand-name,
  #sidebar.collapsed .brand-sub,
  #sidebar.collapsed .brand-tagline { opacity: 0; pointer-events: none; }

  .sidebar-logout { padding: 6px 6px 10px; border-top: 1px solid var(--sidebar-border); }
  .sidebar-logout a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      color: #E7000B;
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      white-space: nowrap;
      border-radius: 7px;
  }
  .sidebar-logout a:hover { background: #fff0f0; color: var(--red); }
  .sidebar-logout a i { font-size: 15px; flex-shrink: 0; min-width: 18px; text-align: center; }

  #main {
    margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column;
    height: 100vh; transition: margin-left 0.25s ease; min-width: 0;
  }
  #main.expanded { margin-left: var(--sidebar-collapsed-w); }

  .topbar {
    height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px; padding: 0 18px;
    position: sticky; top: 0; z-index: 100; flex-shrink: 0;
  }
  .toggle-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); padding: 4px; }
 .search-wrap {
    flex: 1;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 8px;
    padding: 7px 12px;
    border: 1px solid #E5E7EB;
}
  .search-wrap input { border: none; background: none; outline: none; font-size: 13px; color: var(--text); width: 100%; }
  .filter-btn {
    background: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #E5E7EB;
}
  .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .icon-btn { width: 34px; height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; font-size: 16px; color: var(--text); }
  .badge-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
  .admin-info .name { font-size: 13px; font-weight: 600; margin: 0px;}
  .admin-info .role { font-size: 11px; color: var(--muted); }

  .content { flex: 1; overflow-y: auto; padding: 18px; min-width: 0; }

 .stat-card {
    background: var(--card);
    border-radius: 10px;
    padding: 40px 30px;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border);
}
  .stat-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
  .stat-value {
    font-size: 27px;
    font-weight: 700;
    color: #101828;
  }
  .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
  .icon-blue { background: rgba(59,130,246,0.10); color: var(--blue); }
  .icon-purple { background: rgba(124,58,237,0.10); color: var(--purple); }
  .icon-green { background: rgba(0,184,148,0.10); color: var(--green); }
  .icon-orange { background: rgba(245,158,11,0.10); color: var(--orange); }
  .icon-teal { background: rgba(13,148,136,0.10); color: var(--teal); }
  .icon-cyan { background: rgba(6,182,212,0.10); color: var(--cyan); }

  .chart-card { background: var(--card); border-radius: 10px; padding: 18px; border: 1px solid var(--border); }
  .chart-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0px;
    color: #101828;
  }
  .chart-sub { font-size: 12px; color: var(--muted); margin-top: 2px; margin-bottom: 14px; }
  .chart-legend { display: flex; gap: 20px; margin-top: 12px; }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; }
  .legend-label { font-size: 12px; color: var(--muted); }

  .table-card { background: var(--card); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
  .section-card { background: var(--card); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
  .table-head, .section-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .table-title, .section-title { font-size: 18px; font-weight: 600; color: #101828; }
  .table-sub, .section-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  table { width: 100%; border-collapse: collapse; }
  th { padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #fafbfc; }
  td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
  tr:last-child td { border-bottom: none; }
  .txn-id { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
  .txn-arrow { color: var(--blue); font-size: 11px; }
  .amount { font-weight: 600; }
  .badge-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
  .badge-completed { background: rgba(0,184,148,0.10); color: var(--green); }
  .badge-pending { background: rgba(245,158,11,0.10); color: var(--orange); }
  .badge-failed { background: rgba(239,68,68,0.10); color: var(--red); }
  .pagination-wrap { padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; }
  .page-btns { display: flex; gap: 4px; }
  .page-btn { width: 28px; height: 28px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
  .page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

  .payment-item { padding: 13px 18px; border-bottom: 1px solid var(--border); }
  .payment-item:last-of-type { border-bottom: none; }
  .pi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
  .pi-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .pi-amount { font-size: 13px; font-weight: 700; white-space: nowrap; }
  .pi-college { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
  .pi-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .pi-due { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
  .pi-installment { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 10px; padding: 2px 8px; color: var(--muted); }
  .pi-overdue { color: var(--red); font-size: 10px; font-weight: 600; background: rgba(239,68,68,0.08); padding: 2px 7px; border-radius: 10px; display: flex; align-items: center; gap: 3px; }
  .btn-remind { background: var(--blue); color: #fff; border: none; border-radius: 6px; padding: 5px 13px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .btn-remind:hover { background: #2563eb; }

  .activity-item { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
  .activity-item:last-of-type { border-bottom: none; }
  .act-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .act-blue { background: rgba(59,130,246,0.10); color: var(--blue); }
  .act-green { background: rgba(0,184,148,0.10); color: var(--green); }
  .act-purple { background: rgba(124,58,237,0.10); color: var(--purple); }
  .act-orange { background: rgba(245,158,11,0.10); color: var(--orange); }
  .act-teal { background: rgba(13,148,136,0.10); color: var(--teal); }
  .act-cyan { background: rgba(6,182,212,0.10); color: var(--cyan); }
  .act-body { flex: 1; min-width: 0; }
  .act-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
  .act-desc { font-size: 12px; color: var(--muted); margin-bottom: 3px; line-height: 1.4; }
  .act-time { font-size: 11px; color: #bbb; }
  .view-all-link { text-align: center; font-size: 12px; color: var(--blue); font-weight: 600; cursor: pointer; padding: 11px 18px; border-top: 1px solid var(--border); display: block; text-decoration: none; }
  .view-all-link:hover { background: #f8fbff; }

  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 150; }

  @media (max-width: 768px) {
    #sidebar { position: fixed; transform: translateX(-100%); width: var(--sidebar-w) !important; transition: transform 0.25s ease; z-index: 300; box-shadow: 2px 0 16px rgba(0,0,0,0.10); }
    #sidebar.mobile-open { transform: translateX(0); }
    #sidebar.collapsed { width: var(--sidebar-w) !important; }
    #sidebar.collapsed .nav-label, #sidebar.collapsed .brand-name, #sidebar.collapsed .brand-sub, #sidebar.collapsed .brand-tagline { opacity: 1; }
    #main { margin-left: 0 !important; }
    .sidebar-overlay.active { display: block; }
    .search-wrap { display: none; }
    .filter-btn { display: none; }
    .admin-info { display: none; }
    .collapse-btn { display: none; }
  }
  @media (max-width: 576px) {
    .content { padding: 12px; }
    table th:nth-child(3), table td:nth-child(3), table th:nth-child(4), table td:nth-child(4) { display: none; }
  }

.topbar .students_textbox {
    padding: 10px 0px;
    margin: 0px 60px 0px 0px;
}
.topbar .students_textbox h3{
  color: #101828;
}
.topbar .students_textbox p{
  color: #4A5565;
}
.topbar .add_studentbtn {
    font-size: 14px;
    background: var(--blue);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    margin: 0px 30px 0px 0px;
        text-decoration: none;
}






.student-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Table */

.student-table {
    margin-bottom: 0;
}

.student-table thead th {
    background: #f3f4f6;
    color: #4A5565;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: capitalize;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.student-table tbody td {
    padding: 18px;
    font-size: 14px;
    font-weight: 400;
    color: #4A5565;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
}

.student-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 22px;
    padding: 0 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

/* Fee Status */

.badge-paid {
    background: #d8f3df;
    color: #16a34a;
}

.badge-pending {
    background: #fce8a8;
    color: #b7791f;
}

.badge-overdue {
    background: #ffe0e0;
    color: #ef4444;
}

.badge-partial {
    background: #ffe2c5;
    color: #ea580c;
}

/* Student Status */

.badge-active {
    background: #d8f3df;
    color: #16a34a;
}

.badge-suspended {
    background: #ffe0e0;
    color: #dc2626;
}

.badge-graduated {
    background: #dbeafe;
    color: #2563eb;
}

/* Action Icons */

.action-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.action-icons i {
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: .3s;
}

.action-icons i:hover {
    color: #111827;
}

/* Footer */

.table-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.pagination-custom {
    display: flex;
    gap: 6px;
}

.btn-page {
    height: 34px;
    min-width: 34px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
    padding: 0 12px;
}

.btn-page.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}