/* Educlerk Teacher Panel Styles */

body {
  background: #f7f9fb;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.sidebar {
  background: #fff;
  border-right: 1.5px solid #e5e9f2;
  min-height: 100vh;
  width: 290px;
  min-width: 290px;
  max-width: 310px;
  padding: 0 0 24px 0;
  position: relative;
  box-shadow: 0 2px 12px rgba(44, 56, 74, 0.04);
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-brand-section {
  padding: 20px 0 10px 0;
  flex-shrink: 0;
}

.sidebar-menu-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 30px 10px;
}

.sidebar-group-header {
  padding: 18px 18px 6px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 90%;
  margin: 0 auto 8px auto;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #546070;
  background: #f7f9fb;
  border: none;
  transition:
    background 0.18s,
    color 0.18s;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.sidebar-tab:hover {
  background: #e8f1ff;
  color: #0d47a1;
  text-decoration: none !important;
}

.sidebar-tab:focus,
.sidebar-tab:active {
  text-decoration: none !important;
}

.sidebar-tab.active,
.sidebar-tab.dashboard.active {
  background: #0d47a1;
  color: #fff;
}

.sidebar-tab i {
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  background: #0d47a1;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 45px;
  min-height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle:hover {
  background: #083d8b;
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.mobile-overlay.active {
  opacity: 1;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7f9fb;
}

.page-shell {
  width: 100%;
}

.page-content-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.page-panel {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 28px;
  min-height: calc(100vh - 220px);
  overflow: hidden;
}

.main-header {
  background: #121926;
  padding: 1rem !important;
  width: 100%;
}

.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  column-gap: 15px;
  width: 100%;
}

.header-search {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 0.25rem 0.9rem;
  margin: 0;
  min-width: 260px;
  position: relative;
  width: 100%;
  justify-self: center;
  max-width: 360px;
  height: 46px;
  box-shadow: none;
  overflow: visible;
  display: flex;
  align-items: center;
}

.header-search:focus-within {
  border-color: #cbd5e1;
  box-shadow: none;
}

.search-icon {
  color: #94a3b8;
  font-size: 1rem;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0;
  padding: 0 0 0 2rem;
  background: transparent !important;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-box-shadow: none !important;
  -webkit-border-radius: 0 !important;
  -webkit-appearance: none !important;
  background-clip: padding-box;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.2;
  min-width: 0;
}

.search-input:focus {
  outline: none;
  box-shadow: none !important;
}

.header-search .search-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
  -webkit-border-radius: 0 !important;
  -webkit-appearance: none !important;
}

.search-input::placeholder {
  color: #94a3b8;
}

.header-right,
.header-right-icon,
.user-dropdown-container {
  display: flex;
  align-items: center;
  position: relative;
}

.header-left {
  flex: 1 1 0;
  min-width: 0;
  justify-self: start;
}

.header-right {
  margin-left: auto;
  flex: 1 1 0;
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
}

.header-right-icon {
  gap: 12px;
}

.icon-btn {
  background: transparent;
  border: none;
  position: relative;
}

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
}

.user-info {
  color: #fff;
  font-weight: 500;
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.user-info img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  z-index: 1050;
  overflow: hidden;
}

.user-dropdown-content {
  padding: 8px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #334155;
}

.user-dropdown-item a {
  color: inherit !important;
  text-decoration: none !important;
}

.user-dropdown-item:hover {
  background: #f8fafc;
}

.user-dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: #e5e9f2;
}

.main-content > section.py-3,
.main-content > section:nth-of-type(1) {
  flex: 1 0 auto !important;
  padding: 1.5rem 2rem !important;
}

.main-content > section.mx-4,
.main-content > section:nth-of-type(2) {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  color: #0057a7 !important;
  margin-top: 0 !important;
  background: none !important;
  filter: none !important;
  padding: 0 !important;
}

.main-content h1 {
  font-size: 28px !important;
  font-weight: 800 !important;
  margin-bottom: 28px !important;
  padding-bottom: 16px !important;
  border-bottom: 3px solid #0d47a1 !important;
}

/* Standardized Heading Hierarchy */
.main-content h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 24px 0 18px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #0d47a1 !important;
  line-height: 1.3 !important;
}

.main-content h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 20px 0 14px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #0d47a1 !important;
  line-height: 1.3 !important;
}

.main-content h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 16px 0 12px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #0d47a1 !important;
  line-height: 1.3 !important;
}

.main-content h5 {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 14px 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #334155 !important;
  line-height: 1.3 !important;
}

.main-content h6 {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 12px 0 8px 0 !important;
  padding: 0 !important;
  border: none !important;
  color: #334155 !important;
  line-height: 1.3 !important;
}

/* Standardized Section Container */
.page-section,
.content-section {
  margin-bottom: 32px;
  padding: 0;
}

.page-section:last-child,
.content-section:last-child {
  margin-bottom: 0;
}

/* Standardized Card & Panel Styles */
.section-panel,
.content-panel,
.data-panel {
  background: #ffffff;
  border: 1.5px solid #e5e9f2;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(44, 56, 74, 0.04);
  transition: box-shadow 0.2s ease;
}

.section-panel:hover,
.content-panel:hover,
.data-panel:hover {
  box-shadow: 0 4px 12px rgba(44, 56, 74, 0.08);
}

/* Section Header Within Panels */
.section-panel > h3:first-child,
.section-panel > h4:first-child,
.content-panel > h3:first-child,
.content-panel > h4:first-child {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e5e9f2 !important;
}

/* Improved Alignment & Padding */
.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-start {
  justify-content: flex-start;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Spacing Utilities */
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 8px !important;
}
.mt-2 {
  margin-top: 16px !important;
}
.mt-3 {
  margin-top: 24px !important;
}
.mt-4 {
  margin-top: 32px !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 8px !important;
}
.mb-2 {
  margin-bottom: 16px !important;
}
.mb-3 {
  margin-bottom: 24px !important;
}
.mb-4 {
  margin-bottom: 32px !important;
}

.p-1 {
  padding: 8px !important;
}
.p-2 {
  padding: 16px !important;
}
.p-3 {
  padding: 24px !important;
}
.p-4 {
  padding: 32px !important;
}

.px-2 {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.px-3 {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.py-2 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.py-3 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

/* Consistent Row & Column Spacing */
.grid-gap-2 {
  gap: 16px;
}

.grid-gap-3 {
  gap: 24px;
}

/* Uniform Table Enhancements */
.main-content table th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 2px solid #cbd5e1 !important;
  padding: 14px 18px !important;
  font-size: 12px !important;
}

.main-content table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #eef2f7 !important;
  vertical-align: middle !important;
  color: #334155 !important;
  font-size: 14px !important;
}

.main-content table tbody tr:hover {
  background-color: #f8fafc;
}

.main-content table.list_table,
.main-content table.view,
.main-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 24px !important;
  background-color: #ffffff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  border: 1.5px solid #e5e9f2 !important;
  box-shadow: 0 2px 8px rgba(44, 56, 74, 0.04) !important;
  overflow: hidden !important;
}

.main-content table th,
.main-content table td {
  padding: 14px 18px !important;
  font-size: 14px !important;
  color: #334155 !important;
  border-bottom: 1px solid #eef2f7 !important;
  vertical-align: middle !important;
  text-align: left;
}

.main-content table th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

.main-content table tr:last-child td {
  border-bottom: none !important;
}

.textfield,
.textbox,
.main-content input[type="text"],
.main-content input[type="password"],
.main-content input[type="email"],
.main-content select,
.main-content textarea {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  font-family: inherit !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.textfield:focus,
.textbox:focus,
.main-content input[type="text"]:focus,
.main-content input[type="password"]:focus,
.main-content input[type="email"]:focus,
.main-content select:focus,
.main-content textarea:focus {
  border-color: #0d47a1 !important;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1) !important;
}

.main-content textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 120px !important;
  resize: vertical !important;
  box-sizing: border-box !important;
}

.main-content textarea,
.main-content form textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.label,
.label_left,
.main-content label,
text.label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  display: block !important;
  float: none !important;
  line-height: 1.4 !important;
}

.main-content label:before,
.main-content label:after {
  content: none !important;
  display: none !important;
}

.button,
.submit-btn,
.btn-submit,
.main-content input[type="submit"],
.main-content button[type="submit"] {
  background: #0d47a1 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 11px 24px !important;
  border-radius: 8px !important;
  border: 1px solid #0d47a1 !important;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.15) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
}

.button:hover,
.submit-btn:hover,
.btn-submit:hover,
.main-content input[type="submit"]:hover,
.main-content button[type="submit"]:hover {
  background: #083d8b !important;
  border-color: #083d8b !important;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

span.error,
span.verr,
label.error {
  display: inline-block !important;
  color: #dc2626 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

.main-content form > table:not(.table):not(.list_table):not(.profile) {
  width: 100% !important;
  margin: 0 auto 28px !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Form Row Styling */
.main-content form > table:not(.table):not(.list_table):not(.profile) tr {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
}

.main-content form > table:not(.table):not(.list_table):not(.profile) tr td {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
  flex: 1;
  min-width: 0 !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:first-child {
  flex: 0 0 26% !important;
  width: 26% !important;
  text-align: right !important;
  padding-right: 8px !important;
  padding-top: 10px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:last-child {
  flex: 1 !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr:last-child
  td:last-child,
.teacher-auth-form tr:last-child td:last-child {
  justify-content: flex-end !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="text"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="password"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="email"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="file"],
.main-content form > table:not(.table):not(.list_table):not(.profile) select,
.main-content form > table:not(.table):not(.list_table):not(.profile) textarea,
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  .textfield,
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  .fieldwith {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  vertical-align: middle !important;
  flex: 1 1 280px !important;
  min-width: 0 !important;
}

.main-content form > table:not(.table):not(.list_table):not(.profile) textarea {
  min-height: 120px !important;
  flex: 1 1 100% !important;
}

.profile_details,
.table_style {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 24px;
}

.profile_single {
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.profile_details .table-responsive,
.table_style .table-responsive {
  overflow-x: auto;
}

.profile_details form,
.table_style form {
  width: 100%;
}

.profile_details fieldset,
.table_style fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.profile_details .form-control,
.table_style .form-control {
  width: 100% !important;
  display: block !important;
  min-width: 0 !important;
}

.profile_details .row,
.table_style .row {
  margin-left: -12px;
  margin-right: -12px;
}

.profile_details .row > [class*="col-"],
.table_style .row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 16px;
}

.profile_details .right_button,
.table_style .right_button {
  text-align: right;
}

.filtering_single {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.filtering_single label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: block;
}

.btn-container,
.form-actions,
.teacher-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid #e5e9f2;
}

.receipt_head,
.receipt_body {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #e5e9f2 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.receipt_head td,
.receipt_head th,
.receipt_body td,
.receipt_body th {
  padding: 13px 16px !important;
  font-size: 14px !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:first-child:empty
  + td {
  justify-content: flex-end !important;
  text-align: right !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:first-child:empty
  + td
  .button,
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:first-child:empty
  + td
  input[type="submit"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  tr
  td:first-child:empty
  + td
  button[type="submit"] {
  margin-left: 0 !important;
}

.teacher-auth-form {
  width: 100% !important;
  max-width: 430px !important;
  margin: 24px auto !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
  background: #ffffff !important;
  border: 1px solid #e5e9f2 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(44, 56, 74, 0.06) !important;
  padding: 22px !important;
}

.teacher-auth-form tr td {
  border: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

.teacher-auth-form tr td:first-child {
  width: 34% !important;
  padding-right: 16px !important;
  vertical-align: top !important;
  white-space: nowrap;
}

.teacher-auth-form tr td:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}

.teacher-auth-form .textfield,
.teacher-auth-form .textbox,
.teacher-auth-form input[type="text"],
.teacher-auth-form input[type="password"],
.teacher-auth-form input[type="email"],
.teacher-auth-form select,
.teacher-auth-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 260px !important;
}

.teacher-auth-form .button,
.teacher-auth-form input[type="submit"],
.teacher-auth-form button[type="submit"] {
  flex: 0 0 auto !important;
}

.teacher-auth-form tr td:first-child:empty + td {
  justify-content: flex-end !important;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  .fieldwith {
  width: 100% !important;
}

.main-content form > table:not(.table):not(.list_table):not(.profile) .button,
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="submit"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  button[type="submit"] {
  flex: 0 0 auto !important;
}

span.error,
span.verr,
label.error {
  display: inline-block !important;
  color: #dc2626 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 6px 0 0 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  vertical-align: top !important;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-summary-card,
.profile-card {
  background: #ffffff;
  border: 1.5px solid #e5e9f2;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 56, 74, 0.04);
}

.profile-summary-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.profile-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d47a1 0%, #1e5ba1 100%);
}

.profile-summary-avatar {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e9f2;
  flex: 0 0 92px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.profile-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-summary-content {
  min-width: 0;
}

.profile-kicker {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.profile-page-title {
  margin: 0;
  padding: 0;
  border: 0 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0057a7 !important;
  line-height: 1.2;
}

.profile-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
}

.profile-summary-line span {
  position: relative;
  padding-right: 14px;
}

.profile-summary-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #cbd5e1;
}

.profile-card__header {
  padding: 18px 22px 14px 22px;
  border-bottom: 1px solid #eef2f7;
}

.profile-card__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0057a7;
}

.profile-card__header p {
  margin: 6px 0 0 0;
  color: #64748b;
  font-size: 13px;
}

.profile-list {
  padding: 8px 22px 18px 22px;
}

.profile-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row--full {
  grid-template-columns: 180px minmax(0, 1fr);
}

.profile-row__label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.profile-row__value {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  word-break: break-word;
}

.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  input[type="submit"],
.main-content
  form
  > table:not(.table):not(.list_table):not(.profile)
  button[type="submit"] {
  min-width: 160px;
}

.footer {
  color: #888;
  text-align: center;
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44, 56, 74, 0.04);
  border: none;
}

.card-footer-text {
  height: 60px;
  color: #0b1c33;
  font-weight: 500;
}

.msd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  margin-top: 8px;
  max-height: 60vh;
  overflow: auto;
  padding: 8px;
}

.msd.hidden {
  display: none;
}

.header-search .msd {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
}

.msd .msd-group {
  padding: 6px 8px;
}

.msd .msd-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 8px 4px;
}

.msd .msd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.msd .msd-item:hover,
.msd .msd-item.active {
  background: #f3f4f6;
}

.msd .msd-item .path {
  font-size: 12px;
  color: #6b7280;
}

.msd .msd-item .title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.msd .msd-empty {
  padding: 16px;
  color: #6b7280;
  font-size: 13px;
}

.msd a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.msd .hit {
  background: linear-gradient(180deg, #fff59d 0, #ffec63 100%);
  border-radius: 4px;
}

@media (max-width: 992px) {
  .sidebar-tab {
    min-height: 48px;
    padding: 12px 18px;
  }

  .sidebar {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .sidebar,
  .mobile-overlay {
    will-change: transform, opacity;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .sidebar {
    position: fixed !important;
    left: -270px !important;
    top: 0 !important;
    height: 100vh !important;
    transform: translateX(-100%) !important;
    z-index: 1001 !important;
    transition: transform 0.3s ease-in-out !important;
  }

  .sidebar.open {
    position: fixed !important;
    overflow: auto !important;
    left: 0px !important;
    width: 100% !important;
    top: 0 !important;
    height: 100vh !important;
    transform: translateX(0) !important;
    z-index: 1001 !important;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .header-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .header-search {
    margin: 0;
    width: 100%;
    max-width: 320px;
    order: 3;
    grid-column: 1 / -1;
  }

  .user-dropdown {
    right: auto;
    left: 0;
  }
}

@media (max-width: 768px) {
  .page-panel {
    padding: 14px !important;
    border-radius: 14px !important;
    min-height: auto !important;
  }

  .main-content > section.py-3,
  .main-content > section:nth-of-type(1) {
    padding: 0.75rem !important;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .header-search {
    display: flex !important;
    margin: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .sidebar {
    width: 290px;
    min-width: 290px;
    max-width: 300px;
    min-height: 100vh;
  }

  .header {
    border-radius: 0;
  }

  .header-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-search {
    max-width: 100%;
  }

  .header-left .welcome-text {
    display: none;
  }

  .header-right-icon {
    display: none;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
  }

  .header-search {
    order: 3;
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .main-content form > table:not(.table):not(.list_table):not(.profile),
  .main-content form > table:not(.table):not(.list_table):not(.profile) tbody,
  .main-content form > table:not(.table):not(.list_table):not(.profile) tr,
  .main-content form > table:not(.table):not(.list_table):not(.profile) td {
    display: block !important;
    width: 100% !important;
  }

  .main-content
    form
    > table:not(.table):not(.list_table):not(.profile)
    tr
    td:first-child {
    padding-right: 0 !important;
    padding-bottom: 6px !important;
    white-space: normal !important;
  }

  .main-content
    form
    > table:not(.table):not(.list_table):not(.profile)
    tr
    td:last-child {
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 100vw;
    max-width: 280px;
  }

  .profile-summary-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-summary-avatar {
    margin: 0 auto;
  }

  .profile-summary-line {
    justify-content: center;
  }

  .profile-card__header {
    padding: 18px;
  }

  .profile-list {
    padding: 6px 18px 18px 18px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }
}

/* ====================================================
   Smsadmin-style Layout Components for Teacher Panel
   ==================================================== */

/* Main Card Container */
.menu_details_content {
  background: transparent;
  border-radius: 0;
  padding: 0 0 24px 0;
  margin: 0 0 24px 0;
  border: none;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
}

/* Title Section Top Row */
.menu_details_content_top {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #0d47a1;
}

.menu_details_content_top .row {
  align-items: center;
}

/* Section Title */
.section_title h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.2px;
  text-transform: none;
}

.section_title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.2px;
}

/* Right Action Buttons */
.right_button {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.right_button .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #0d47a1;
  background: #0d47a1;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.right_button .btn.btn-light,
.right_button .btn.btn-primary {
  background: #0d47a1;
  color: #ffffff !important;
  border-color: #0d47a1;
}

.right_button .btn.btn-light:hover,
.right_button .btn.btn-primary:hover {
  background: #083d8b;
  border-color: #083d8b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
  text-decoration: none;
}

.right_button .btn i {
  margin-right: 8px;
  font-size: 15px;
}

/* Search / Filter Area */
.search_filtering {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e9f2;
}

.search_filtering select,
.search_filtering input[type="text"] {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
}

.search_filtering select:focus,
.search_filtering input[type="text"]:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  outline: none;
}

/* Table Style */
.table_style {
  width: 100%;
}

.table_style table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1.5px solid #e5e9f2;
  border-radius: 10px;
  overflow: hidden;
}

.table_style th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.table_style td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 14px;
}

.table_style tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .menu_details_content {
    padding: 0 0 16px 0;
    margin: 0 0 16px 0;
  }

  .right_button {
    text-align: left;
    justify-content: flex-start;
    margin-top: 12px;
  }

  .section_title h4 {
    font-size: 16px;
  }

  .section_title h2 {
    font-size: 18px;
  }

  .search_filtering {
    flex-direction: column;
    gap: 12px;
  }

  .filtering_single {
    width: 100%;
  }

  .search_filtering select,
  .search_filtering input[type="text"] {
    width: 100%;
  }
}

/* Form Group & Input Container Styling */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.form-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0;
  padding: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

/* Enhanced Form Layout */
.form-layout-2col .form-group {
  flex: 1;
  min-width: calc(50% - 12px);
}

.form-layout-3col .form-group {
  flex: 1;
  min-width: calc(33.33% - 12px);
}

/* Fieldset Styling */
fieldset {
  border: 1.5px solid #e5e9f2 !important;
  border-radius: 10px !important;
  padding: 24px !important;
  margin: 0 0 24px 0 !important;
  background: #f8fafc !important;
}

fieldset legend {
  padding: 0 12px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0d47a1 !important;
  background: #ffffff !important;
  margin-left: -12px !important;
}

/* Better Row Group Styling */
.form-row,
.input-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-row > *,
.input-row > * {
  flex: 1;
  min-width: 200px;
}

/* Visual Separators */
.divider,
.section-divider {
  height: 2px;
  background: #e5e9f2;
  margin: 28px 0;
  border: none;
}

.divider-sm {
  margin: 16px 0;
}

/* Content Box Styling */
.content-box {
  background: #f8fafc;
  border-left: 4px solid #0d47a1;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.content-box.info {
  background: #f0f7ff;
  border-left-color: #0d47a1;
}

.content-box.warning {
  background: #fffbeb;
  border-left-color: #d97706;
}

.content-box.danger {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.content-box.success {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

/* Icon Button Groups */
.button-group,
.action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button-group.stacked {
  flex-direction: column;
  gap: 8px;
}

/* Badge Styling */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* List Styling */
.vertical-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vertical-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
  color: #334155;
}

.vertical-list li:last-child {
  border-bottom: none;
}

.vertical-list li strong {
  color: #0d47a1;
  font-weight: 600;
}

/* Smart Design System Enhancements */

/* Consistent spacing for all containers */
.menu_details_content {
  position: relative;
}

/* Enhanced visual hierarchy */
.main-content > *:first-child {
  margin-top: 0;
}

/* Improved form field consistency */
.main-content input[type="text"]:placeholder-shown,
.main-content input[type="email"]:placeholder-shown,
.main-content input[type="password"]:placeholder-shown,
.main-content textarea:placeholder-shown {
  color: #94a3b8;
}

/* Better list styling */
.main-content ul,
.main-content ol {
  color: #334155;
  line-height: 1.8;
  margin: 16px 0;
}

.main-content li {
  margin-bottom: 8px;
}

/* Focus states for accessibility */
.main-content input:focus-visible,
.main-content select:focus-visible,
.main-content textarea:focus-visible {
  outline: 2px solid #0d47a1;
  outline-offset: 2px;
}

/* Improved link styling */
.main-content a {
  color: #0057a7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-content a:hover {
  color: #083d8b;
  text-decoration: underline;
}

/* Empty state styling */
.no-data,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 15px;
}

.no-data strong,
.empty-state strong {
  color: #475569;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

/* Info boxes */
.info-box,
.alert-box {
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #0d47a1;
  background: #f0f7ff;
  color: #334155;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.alert-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.alert-danger {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.alert-success {
  border-left-color: #16a34a;
  background: #f0fdf4;
}
