/* Font Awesome Icons (if not already loaded) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");



/* TMS Frontend Styles */


.tms-main-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 240px);
  max-width: calc(100% - 240px) !important;
  margin-left: 240px !important;
}

* {
  box-sizing: border-box;
}

/*
 table > tbody > tr > td{
        border: 0px solid #dddddd !important;
 }*/
header#masthead {
  display: none;
}

.footer-wrapper {
  display: none;
}

header.entry-header {
  display: none;
}

aside#secondary {
  display: none;
}

.content-area {
  width: 100% !important;
  float: left;
  margin-left: -1px;
}

.header-clone {
  display: none;
}

.hentry {
  margin: 0;
  padding: 0px !important;
  background-color: #fff !important;
  border: unset !important;
  margin-bottom: 0px !important;
}

.marksheet-btn {
  margin-left: 15px;
}

div#content .container {
  width: 100%;
}

.student-serch-bar {
  display: flex;
  gap: 15px;
}

.marksheet {
  max-width: 800px;
  margin: 20px auto;
  border: 2px solid #000;
  padding: 30px;
  background: white;
  font-family: Arial, sans-serif;
}

.student-marksheet .header {
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.student-marksheet .header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
}

.student-marksheet .header h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #333;
}

.student-marksheet .header h3 {
  margin: 0;
  font-size: 16px;
  color: #666;
}

.student-marksheet .student-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  border: 1px solid #000;
}

.student-marksheet .student-details td {
  border: 1px solid #000;
  padding: 10px 12px;
  font-size: 14px;
  vertical-align: top;
  font-weight: 400;
}

.student-marksheet .student-details td:first-child {
  width: 50%;
}

.student-marksheet .marks-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  border: 2px solid #000;
}

.student-marksheet .marks-table th {
  background-color: #f0f0f0;
  border: 1px solid #000;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.student-marksheet .marks-table td {
  border: 1px solid #000;
  padding: 10px 8px;
  font-size: 14px;
  text-align: center;
}

.student-marksheet .marks-table .subject-name {
  text-align: left;
  padding-left: 15px;
}

.student-marksheet .marks-total {
  background-color: #e8f4f8;
  font-weight: bold;
}

.student-marksheet .marks-total td {
  font-size: 15px;
  padding: 12px 8px;
}

.student-marksheet .summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 15px;
  border: 1px solid #000;
  background-color: #f9f9f9;
}

.student-marksheet .summary-item {
  font-size: 16px;
  font-weight: bold;
}

.student-marksheet .signatures {
  text-align: center;
  margin-top: 50px;
}

.student-marksheet .signature-block {
  display: inline-block;
  width: 200px;
}

.student-marksheet .sign-line {
  border-top: 1px solid #000;
  margin-bottom: 8px;
  height: 15px;
}

.student-marksheet .signature-block p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

.quick-actions-section {
  max-width: 1200px;
  margin: 0 auto;
}

.all-total-fees {
  padding: 20px;
  text-align: center;
  background: #4169e1;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  border-radius: 10px;
}

.all-total-fees span {
  border-right: 1px solid red;
  padding: 0px 10px;
}

/* Modern Dashboard Header - Option 1: Clean Gradient */
.tms-dashboard-header {
  background: linear-gradient(135deg, royalblue 0%, steelblue 100%);
  padding: 30px 30px;
  border-radius: 16px;
  margin-bottom: 38px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tms-dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tms-dashboard-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  position: relative;
  z-index: 2;
  font-weight: 400;
}


/* Modern Stats Grid - Option 1: Clean Cards */
.tms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tms-dashboard {
  padding: 20px;
}

.tms-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tms-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tms-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* background: linear-gradient(90deg, #3b82f6, #8b5cf6);*/
  background: royalblue
}

.tms-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tms-stat-icon i {
  font-size: 24px;
  color: white;
}

.tms-stat-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1;
}

.tms-stat-content p {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Modern Stats Grid - Option 2: Glassmorphism */
/*.tms-stats-grid-glass {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
}

.tms-stat-card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
}

.tms-stat-card-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}*/

.tms-stat-card-glass .tms-stat-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tms-stat-card-glass .tms-stat-content h3 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tms-stat-card-glass .tms-stat-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Modern Stats Grid - Option 3: Minimal Flat */
.tms-stats-grid-minimal {
  display: grid;
  /*  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  gap: 1px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.tms-stat-card-minimal {
  background: white;
  padding: 40px 32px;
  text-align: center;
  transition: background-color 0.3s ease;
  position: relative;
}

.tms-stat-card-minimal:hover {
  background: #f8fafc;
}

.tms-stat-card-minimal .tms-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  background: #f1f5f9;
  border-radius: 12px;
}

.tms-stat-card-minimal .tms-stat-icon i {
  font-size: 20px;
  color: #475569;
}

.tms-stat-card-minimal .tms-stat-content h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.tms-stat-card-minimal .tms-stat-content p {
  font-size: 0.875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Modern Stats Grid - Option 4: Gradient Cards */
.tms-stats-grid-gradient {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tms-stat-card-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 32px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tms-stat-card-gradient:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tms-stat-card-gradient:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tms-stat-card-gradient:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tms-stat-card-gradient:nth-child(5) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tms-stat-card-gradient:hover {
  transform: scale(1.02);
}

.tms-stat-card-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tms-stat-card-gradient:hover::before {
  opacity: 1;
}

.tms-stat-card-gradient .tms-stat-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tms-stat-card-gradient .tms-stat-content h3 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tms-stat-card-gradient .tms-stat-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {

  .tms-stats-grid,
  .tms-stats-grid-glass,
  .tms-stats-grid-minimal,
  .tms-stats-grid-gradient {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .tms-stat-card,
  .tms-stat-card-glass,
  .tms-stat-card-minimal,
  .tms-stat-card-gradient {
    padding: 24px 20px;
  }

  .tms-stat-content h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tms-stat-content h3 {
    font-size: 1.75rem;
  }

  .tms-stat-icon {
    width: 56px;
    height: 56px;
  }

  .tms-stat-icon i {
    font-size: 24px;
  }
}

#tms-edit-sessional-form a.tms-btn {
  background: #f0f0f0;
}

span.tms-user-session {
  font-size: 14px;
  font-weight: 500;
}

p.sessional-note {
  font-size: 16px;
  font-weight: 400;
}

.notification-box p {
  font-size: 16px;
  font-weight: 400;
}

.notification-box strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
}

.tms-form-row3 {
  display: grid;
  gap: 15px 20px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 6px;
}

.tms-subjects-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
}

div#subjects_container2 {
  padding-top: 6px !important;
}

.subject-message,
div#subjects_container p,
div#subjects_container2 p {
  padding: 0px !important;
  margin: 0px !important;
  font-size: 18px;
  font-weight: 400;
}

.tms-checkbox-group input[type="checkbox"] {
  width: auto !important;
}

.tms-btn-purple {
  background-color: #6f42c1;
  color: #ffffff;
}

.tms-btn-purple:hover {
  background-color: #5936a2;
}

.tms-btn-pink {
  background-color: #e83e8c;
  color: #ffffff;
}

.tms-btn-pink:hover {
  background-color: #d63384;
}

span.student-pass {
  font-weight: 500;
  color: #4CAF50;
}

span.student-fail {
  color: red;
  font-weight: 500;
}

tr.student-total-marks td {
  font-weight: 700;
}

.tms-sidebar-nav li {
  margin: 0px 18px 4px 18px;
  border-radius: 15px;
}

.tms-sidebar-nav li.active {
  background: #4CAF501A;
}

.tms-sidebar-nav li.active a {
  color: #4CAF50 !IMPORTANT;
}

.tms-sidebar-nav li.active a:hover {
  background: #222C39;
  color: #fff;
}

.tms-delete-subject,
.subject-edit-btn {
  width: 40% !important;
}

.student-profile-data .tms-card,
.view-results-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.student-profile-data .tms-card-header,
.view-results-box h3 {
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 2px solid #00bcd4;
  padding-bottom: 6px;
}

.view-results-box h3 {
  min-height: 50px;
  margin-top: 8px;
}

.view-results-box .tms-table th {
  white-space: nowrap;
}

.student-profile-data ul.tms-card-list {
  font-size: 16px;
  font-weight: 400;
}

.student-profile-data ul.tms-card-list li strong {
  font-weight: 500 !important;
}

.student-profile-data .tms-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.student-profile-data .tms-card-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.student-profile-data .tms-card-list li:last-child {
  border-bottom: none;
}

.student-profile-data .tms-notice {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.student-profile-data .tms-notice-warning {
  background-color: #fff8e1;
  border: 1px solid #ffe082;
}

.student-profile-data .tms-notice-error {
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
}


/* --- Print Styles --- */
@media print {
  body * {
    visibility: hidden;
  }

  #print-section,
  #print-section * {
    visibility: visible;
  }

  #print-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
  }

  .no-print {
    display: none !important;
  }

  table.tms-table-modern {
    font-size: 12px;
    border-collapse: collapse;
    border: 1px solid #a7a7a7;
    /* ✅ Add outer border */
  }

  table.tms-table-modern th,
  table.tms-table-modern td {
    padding: 6px 8px;
    border-bottom: 1px solid #e4e3e3;
  }

  table.tms-table-modern tbody tr:nth-child(odd) {
    background-color: #f5f5f5 !important;
  }

  h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
  }
}




.add-bulk-class .tms-form-row {
  margin-bottom: 0px !important;
}

.tms-table-modern th {
  background: #0072ff;
  color: #fff;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 2px solid #005177;
  text-align: center;
}

.tms-table-modern td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}

.tms-marks-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.roll-no-input {
  width: 73px !important;
  margin-bottom: 0px !important;
}

button.tms-btn.tms-btn-mark {
  padding: 10px 16px !important;
  margin-top: 5px;
  !important
}

/*td.roll-no-box {*/
/*    display: flex;*/
/*    gap: 0px 10px;*/
/*    padding: 15px 8px !important;*/
/*}*/
.tms-mark-input,
.tms-outof-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
  background: #f7fafc;
  transition: border 0.2s;
  margin-bottom: 2px;
}

.tms-mark-input:focus,
.tms-outof-input:focus {
  border-color: #0073aa;
  outline: none;
  background: #fff;
}

.tms-mark-outof {
  font-size: 11px;
  color: #888;
  margin-top: 0;
}

.tms-btn-mark {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 4px;
  white-space: nowrap;
}

.tms-btn-mark:hover {
  background: #138496;
  color: white;
}

/* .tms-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px;
} */
@media (max-width: 1100px) {

  .tms-table-modern th,
  .tms-table-modern td {
    font-size: 13px;
    padding: 6px 4px;
  }

  .tms-mark-input,
  .tms-outof-input {
    width: 40px;
    font-size: 13px;
  }
}


.add-bulk-class .tms-card {
  margin-bottom: 20px !important;
}

/* .add-bulk-class form.tms-form {
    padding-bottom: 0px !important;
} */
/* assets/css/frontend.css */
.tms-has-dropdown .tms-dropdown {
  display: none;
}

.tms-has-dropdown.open .tms-dropdown {
  display: block;
}

.fa-caret-down:before {
  content: "\f0d7";
  margin-left: 10px;
}

.tms-has-dropdown.open ul.tms-dropdown {
  /* background: #2e5168; */
  padding: 10px 0px;
}

.tms-form fieldset {
  border: 0px solid #f4f4f4;
  padding: 0px;
  /* margin-top: 15px;
    margin-bottom: 20px */
}

.tms-form fieldset legend {
  font-size: 20px;
  font-weight: 400;
  padding: 10px 0px;
}

.tms-class-header h3 {
  font-size: 18px !important;
  font-weight: 500;
}

.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  padding: 0px !important;
}

main#wp--skip-link--target {
  margin: 0px !important;
}

h1.wp-block-post-title {
  display: none;
}

.entry-content.alignfull.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
  margin-top: 0px !important;
}

header.wp-block-template-part {
  display: none;
}

footer.wp-block-template-part {
  display: none;
}

h1,
h2,
h3 {
  font-size: 22px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

form.tms-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px;
  margin-bottom: 22px;
}

/* Layout */
.tms-layout {
  display: flex;
  min-height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  /*background: #f8f9fa;*/
}

:where(.wp-site-blocks *:focus) {
  outline-width: 0px !important;
  outline-style: unset !important;
}

/* Sidebar */
.tms-sidebar {
  width: 240px;
  background: #111827;
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  top: 0px;
}

.admin-bar .tms-sidebar {
  top: 15px;
}

.tms-sidebar-header {
  padding: 18px;
  border-bottom: 1px solid #34495e;
  margin: 0px 18px 12px 18px;
}

.tms-sidebar-header h3 {
  margin: 0 0 10px 0;
  color: #ecf0f1;
  font-size: 16px;
  line-height: 24px;
}

/* .tms-user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
} */

.tms-user-name {
  font-weight: bold;
  color: #4CAF50;
  font-size: 16px;
  text-transform: capitalize;
}

.tms-user-role {
  font-size: 16px;
  color: #ffffff;
  text-transform: capitalize;
  font-weight: 600;
  padding-left: 10px;
}

.tms-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* .tms-sidebar-nav li {
  border-bottom: 1px solid #34495e;
}

.tms-sidebar-nav li.active {
  background: #3498db;
} */

.tms-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 15px;
  color: #ecf0f1;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 15px !important;
  border-radius: 15px;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

.tms-sidebar-nav a:hover {
  background: #222C39;
  color: white;
}

/* .tms-sidebar-nav li.active a:hover {
  background: #2980b9;
} */

.tms-sidebar-nav i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.tms-sidebar-nav .tms-logout {
  margin-top: auto;
  border-top: 1px solid #34495e;
}

.tms-sidebar-nav .tms-logout a {
  color: #4CAF50;
}

.tms-sidebar-nav .tms-logout a:hover {
  background: #4CAF50;
  color: white;
}

div#print-section h2 {
  font-size: 22px;
}

.tms-main-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 240px);
}

.tms-page-header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.tms-page-header h1 {
  margin: 0;
  color: #2c3e50;
  font-weight: 500;
}

.tms-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dashboard Styles */
.tms-dashboard-header {
  text-align: center;
}

/*.tms-dashboard-header h1 {
    color: #1F2937;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.tms-dashboard-header p {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 700;
}*/
.tms-quick-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/*.tms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}*/

.tms-stat-card {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

/*.tms-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: white;
  background: hsl(215 25% 18%);
  font-size: 20px;
}

.tms-stat-content h3 {
  margin: 0;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 700;
}

.tms-stat-content p {
     margin: 5px 0 0 0;
    color: #000;
    font-size: 18px;
    font-weight: 500;
}

.tms-dashboard-section {
  margin-bottom: 30px;
}

.tms-dashboard-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
  font-weight: 500;
}

.tms-quick-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tms-children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}*/

/*.tms-child-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tms-child-avatar img {
  border-radius: 50%;
}

.tms-child-info h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.tms-child-info p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 0.9em;
}
.tms-login-form .tms-login-links a,
.tms-register-form .tms-register-links a {
    font-size: 15px;
    font-weight: 600;
}*/


/* Form Styles */
.tms-login-container,
.tms-register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  max-width: 100%;
}

.tms-login-form,
.tms-register-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.tms-register-form {
  max-width: 500px;
}

.tms-login-form h2,
.tms-register-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.tms-form-group {
  margin-bottom: 20px;
}

.tms-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

.tms-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 16px !important;
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

.fees-chart-box {
  margin-bottom: 20px;
}

.tms-form-group input,
.tms-form-group select,
.tms-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  transition: border-color 0.3s;
  line-height: 21px;
  font-weight: 400 !important;
}

.tms-form-group input:focus,
.tms-form-group select:focus,
.tms-form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.tms-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tms-checkbox input[type="checkbox"] {
  width: auto;
}

/* Button Styles */
.tms-btn {
  display: inline-block;
  padding: 12px 24px !important;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  line-height: 1;
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

.tms-btn-primary {
  /* background: #3498db; */
  color: white;
  background: rgb(76 175 80);
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

.tms-btn-primary:hover {
  /* background: #2980b9; */
  color: white;
  background-color: #388E3C;
}

.tms-btn-success {
  background: #0073aa;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0px !important;
}

.tms-btn-success:hover {
  background: #005177;
  color: white;
}

.tms-btn-info {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 14px 24px !important;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: 0px !important;
  font-weight: 400 !important;
  line-height: 10px;
}

.tms-btn-info:hover {
  background: #005177;
  color: white;
}

.tms-btn-warning {
  background: #f39c12;
  color: white;
}

.tms-btn-warning:hover {
  background: #e67e22;
  color: white;
}

.tms-btn-danger {
  background: #e74c3c;
  color: white;
}

.tms-btn-danger:hover {
  background: #c0392b;
  color: white;
}

.tms-btn-sm {
  padding: 10px 16px;
  font-size: 12px;
  width: 100%;
}

.tms-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Table Styles */
.tms-table-responsive {
  overflow-x: auto;
  margin-top: 20px;
}

.tms-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.tms-table th,
.tms-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0px !important;
  vertical-align: middle !important;
}

.tms-table th {
  background: #f8f9fa;
  font-weight: 600 !important;
  color: #2c3e50;
  padding: 20px 12px !important;
}

.tms-table tbody tr:hover {
  background: #cbe5ff !important;
}

.tms-user-info {
  /* display: flex; */
  /* align-items: center; */
  gap: 10px;
}

.tms-user-info img {
  border-radius: 50%;
}

/* Status Styles */
.tms-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px !important;
  font-weight: 500;
  text-transform: uppercase;
}

.tms-status-active {
  background: #d4edda;
  color: #155724;
}

.tms-status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.tms-status-pending {
  background: #fff3cd;
  color: #856404;
}

.tms-status-paid {
  background: #d4edda;
  color: #155724;
}

.tms-status-overdue {
  background: #f8d7da;
  color: #721c24;
}

/* Grid Styles */
.tms-classes-grid,
.tms-subjects-grid,
.tms-teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tms-class-card,
.tms-subject-card,
.tms-teacher-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s;
}

.tms-class-card:hover,
.tms-subject-card:hover,
.tms-teacher-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tms-class-header,
.tms-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px !important;
}

.tms-class-header h3,
.tms-subject-header h3 {
  margin: 0;
  color: #2c3e50;
}

.tms-class-subject,
.tms-subject-code {
  background: #db6234;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 15px;
}

.tms-class-content,
.tms-subject-content {
  margin-bottom: 15px;
}

.tms-class-content p,
.tms-subject-content p {
  margin: 8px 0;
  color: #6c757d;
  font-size: 16px !important;
}

.tms-class-footer,
.tms-subject-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tms-teacher-card {
  text-align: center;
}

.tms-teacher-avatar {
  margin-bottom: 15px;
}

.tms-teacher-avatar img {
  border-radius: 50%;
}

.tms-teacher-info h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
}

.tms-teacher-info p {
  margin: 8px 0;
  color: #6c757d;
  font-size: 0.9em;
}

/* Notice Styles */
.tms-notice {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.tms-notice-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  margin-top: 20px;
}

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

.tms-notice-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

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

/* Error and Success Messages */
.tms-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.tms-success {
  background: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  margin-top: 20px;
}

/* Login/Register Links */
.tms-login-links,
.tms-register-links {
  text-align: center;
  margin-top: 20px;
}

.tms-login-links a,
.tms-register-links a {
  color: #3498db;
  text-decoration: none;
}

.tms-login-links a:hover,
.tms-register-links a:hover {
  text-decoration: underline;
}

/* Activity List */
.tms-activity-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.tms-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}

.tms-activity-item:last-child {
  border-bottom: none;
}

.tms-activity-item i {
  color: #3498db;
}



/* Hamburger styles */
.tms-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin-left: auto;
}

.tms-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: #222;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive sidebar */
@media (max-width: 900px) {

  /* .tms-sidebar {
        position: fixed;
        top: 0;
        width: 240px;
        height: 100%;
       background: #2c3e50;
        z-index: 1001;
        box-shadow: 2px 0 8px rgba(0,0,0,0.08);
        transition: left 0.3s;
        display: block !important;
    } */
  .tms-sidebar.tms-sidebar-open {
    left: 0;
  }

  .tms-main-content {
    margin-left: 0 !important;
    padding: 24px 8px;
  }

  .tms-hamburger {
    display: block;
  }

  body.tms-sidebar-open {
    overflow: hidden;
  }

  /* Optional: overlay */
  .tms-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .tms-sidebar.tms-sidebar-open~.tms-sidebar-overlay {
    display: block;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tms-layout {
    flex-direction: column;
  }

  /*
  .tms-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  } */

  .tms-main-content {
    margin-left: 0;
  }

  .tms-stats-grid {
    grid-template-columns: 1fr;
  }

  .tms-form-row {
    grid-template-columns: 1fr;
  }

  .tms-classes-grid,
  .tms-subjects-grid,
  .tms-teachers-grid {
    grid-template-columns: 1fr;
  }

  .tms-quick-actions {
    flex-direction: column;
  }

  .tms-quick-actions .tms-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {

  .tms-login-form,
  .tms-register-form {
    padding: 20px;
  }

  .tms-main-content {
    padding: 10px;
  }

  .tms-page-header,
  .tms-content {
    padding: 15px;
  }
}



/* Profile Page Styles */
.tms-profile-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.tms-profile-sidebar {
  width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.tms-profile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tms-profile-nav li {
  border-bottom: 1px solid #ecf0f1;
}

.tms-profile-nav li:last-child {
  border-bottom: none;
}

.tms-profile-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tms-profile-nav a:hover {
  background: #f8f9fa;
  color: #3498db;
}

.tms-profile-nav a.active {
  background: #3498db;
  color: white;
}

.tms-profile-nav i {
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

.tms-profile-content {
  flex: 1;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.tms-tab-content {
  display: none;
}

.tms-tab-content.active {
  display: block;
}

.tms-tab-content h2 {
  margin: 0 0 25px 0;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

/* Avatar Section */
.tms-avatar-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.tms-current-avatar {
  flex-shrink: 0;
}

.tms-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3498db;
}

.tms-avatar-upload {
  flex: 1;
}

.tms-avatar-upload label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.tms-avatar-upload input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.tms-avatar-upload input[type="file"]:hover {
  border-color: #3498db;
}

.tms-avatar-upload small {
  display: block;
  margin-top: 5px;
  color: #7f8c8d;
  font-size: 12px;
}

/* Password Strength */
.tms-password-strength {
  margin-top: 10px;
  padding: 10px;
  background: #e8f4fd;
  border-radius: 6px;
  border-left: 4px solid #3498db;
}

.tms-password-strength small {
  color: #2c3e50;
  font-size: 13px;
}

/* Account Info */
.tms-account-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #ecf0f1;
}

.tms-account-info h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.tms-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.tms-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.tms-info-item label {
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
}

.tms-info-item span {
  color: #7f8c8d;
  font-weight: 400;
}

/* Academic Info */
.tms-academic-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.tms-info-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.tms-info-card h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.tms-info-card p {
  margin: 0;
  color: #7f8c8d;
}

.tms-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tms-info-card li {
  padding: 5px 0;
  color: #7f8c8d;
  border-bottom: 1px solid #ecf0f1;
}

.tms-info-card li:last-child {
  border-bottom: none;
}

/* Recent Marks */
.tms-recent-marks {
  margin-top: 30px;
}

.tms-recent-marks h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

/* Children Info */
.tms-child-profile {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.tms-child-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.tms-child-avatar img {
  border-radius: 50%;
  border: 3px solid #3498db;
}

.tms-child-basic h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.tms-child-basic p {
  margin: 2px 0;
  color: #7f8c8d;
  font-size: 14px;
}

.tms-child-performance {
  border-top: 1px solid #dee2e6;
  padding-top: 20px;
}

.tms-child-performance h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.tms-marks-summary {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tms-mark-item {
  background: white;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.tms-mark-item .subject {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.tms-mark-item .marks {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.tms-no-children {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.tms-no-children p {
  color: #7f8c8d;
  font-size: 16px;
  margin: 0;
}

/* Owner Stats */
.tms-owner-stats {
  text-align: center;
  padding: 30px;
}

.tms-quick-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.tms-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  min-width: 120px;
}

.tms-stat-item .number {
  font-size: 32px;
  font-weight: 700;
  color: #3498db;
  margin-bottom: 5px;
}

.tms-stat-item .label {
  font-size: 14px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


#sidebar-footer {
  display: none;
}

.footer-wrapper {
  display: none;
}


input.tms-mark-input.row,
input.tms-outof-input.row {
  min-width: 90%;
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  /* For Chrome, Safari, Edge */
  margin: 0;
  /* Removes any default margin */
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  /* Removes the spinner in Firefox */
}

.ekit-template-content-footer,
.ekit-template-content-header {
  display: none;
}

main#content {
  width: 100% !important;
  max-width: 100%;
  overflow: hidden;
}

.tms-btn {
  text-decoration: unset !important;
}

.page-header {
  display: none;
}

#loginform {
  max-width: 360px;
  margin: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;

}

#loginform .field-group {
  margin-bottom: 16px;
}

#loginform .field-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

#loginform .field-group input[type="text"],
#loginform .field-group input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

#loginform .btn-submit {
  width: 100%;
  padding: 12px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}
