@font-face {
  font-family: "KantumruyPro-VariableFont_wght";
  src: url(../font/Kantumruy_Pro/KantumruyPro-VariableFont_wght.ttf);
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root {
  --primary: #4f46e5;
  --secondary: #4ba0b5;
  --accent: #f59e0b;
  --text: #0f172a;
  --muted: #334155;
  --bg: #f8fafc;
  --bg-background: rgb(75, 160, 181, 0.75);
  --teal: #e0f0f5;
  --bg-btn: #eeeeee;
  --gradient-primary: linear-gradient(135deg, #4ba0b5 0%, #4facfe 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --border-color: #e5e7eb;
  --primary-color: #008080;
  --primary-light: #00b3b3;
  --primary-dark: #006666;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --teal-gradient: linear-gradient(135deg, #008080 0%, #00b3b3 100%);
  --sidebar-w: 260px;
}
body {
  background-color: var(--teal);
  font-family: "KantumruyPro-VariableFont_wght";
}

.sidebar {
  background: white;
  min-height: 100vh;
  width: 250px;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.sidebar .logo {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar .nav-item {
  margin: 5px 15px;
}

.sidebar .nav-link {
  color: #6c757d;
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.sidebar .nav-link.active {
  background-color: var(--secondary);
  color: white;
}

.sidebar .nav-link i {
  margin-right: 10px;
  width: 20px;
}

.main-content {
  margin-left: 250px;
  padding: 20px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.header {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-box {
  position: relative;
  max-width: 400px;
}

.search-box input {
  border-radius: 20px;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  background: #f8f9fa;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.metric-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  height: 120px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.metric-card .icon {
  border: 2px solid var(--teal);
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 24px;
}

.metric-card.sales .icon {
  background-color: #20c997;
  color: white;
}

.metric-card.customers .icon {
  background-color: #0dcaf0;
  color: white;
}

.metric-card.revenue .icon {
  background-color: #dc3545;
  color: white;
}

.metric-card .content h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.metric-card .content p {
  color: #6c757d;
  margin: 0;
  font-size: 14px;
}

.metric-card .content small {
  color: #28a745;
  font-size: 12px;
}

.table-container {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0;
}

.table th {
  border: none;
  color: #6c757d;
  font-weight: 500;
  font-size: 14px;
  padding: 15px 20px;
  background: transparent;
}

.table td {
  border: none;
  padding: 15px 20px;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #f1f1f1;
}

.table tbody tr:last-child {
  border-bottom: none;
}
/* Metric Cards */
.metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.metric-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  color: #fff;
}

.metric-card.courses .icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.metric-card.assignments .icon {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.metric-card.grades .icon {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.metric-card .content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.metric-card .content p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
}

.metric-card .content small {
  color: #28a745;
  font-weight: 500;
}

/* Chart Container */
.chart-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  gap: 15px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Table Container */
.table-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.subject-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* Study Distribution */
.study-distribution,
.upcoming-assignments,
.grade-distribution {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.study-chart,
.visitors-chart {
  height: 200px;
  margin-bottom: 15px;
}

.study-stats,
.visitor-stats,
.grade-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.study-stats li,
.visitor-stats li,
.grade-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.study-stats li:last-child,
.visitor-stats li:last-child,
.grade-stats li:last-child {
  border-bottom: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* result student  */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.07);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: bold;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.dashboard-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  background-color: rgba(0, 128, 128, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.exam-card {
  border-left: 4px solid var(--primary-color);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.exam-card:hover {
  background-color: rgba(0, 128, 128, 0.03);
}

.exam-card.upcoming {
  border-left-color: var(--info-color);
}

.exam-card.available {
  border-left-color: var(--success-color);
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer {
  background-color: white;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-top: 2rem;
}

.stats-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.stats-card .stats-icon {
  font-size: 5rem;
  opacity: 0.07;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--primary-color);
}

.stats-card.border-left-primary {
  border-left: 0.4rem solid var(--primary-color);
}

.stats-card.border-left-success {
  border-left: 0.4rem solid var(--success-color);
}

.stats-card.border-left-info {
  border-left: 0.4rem solid var(--info-color);
}

.stats-card.border-left-warning {
  border-left: 0.4rem solid var(--warning-color);
}

.page-title {
  font-weight: 700;
  color: var(--primary-dark);
  /* margin-bottom: 1.5rem;​ */
  font-size: 1.75rem;
}

.btn-action {
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  background-color: rgba(0, 128, 128, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
  border: none;
}

.badge {
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.activity-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.activity-icon.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.activity-icon.info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
}

.activity-icon.primary {
  background-color: rgba(0, 128, 128, 0.1);
  color: var(--primary-color);
}

.message-list .list-group-item {
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.message-list .list-group-item:hover {
  background-color: rgba(0, 128, 128, 0.05);
  transform: translateX(5px);
}

.message-list .list-group-item.active {
  background-color: rgba(0, 128, 128, 0.1);
  border-left: 4px solid var(--primary-color);
}

.chat-message {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
}

.chat-message.sent {
  background-color: rgba(0, 128, 128, 0.1);
  border-bottom-right-radius: 0.2rem;
  margin-left: auto;
}

.chat-message.received {
  background-color: #f1f3f5;
  border-bottom-left-radius: 0.2rem;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 0.6rem 1rem;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.25);
}

.alert {
  border-radius: 0.5rem;
  border: none;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #856404;
}

.instructions-list {
  counter-reset: item;
}

.instructions-list li {
  list-style-type: none;
  counter-increment: item;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.instructions-list li:before {
  content: counter(item);
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}

.chart-container {
  position: relative;
  /* height: 250px;  */
}

.welcome-banner {
  background: var(--teal-gradient);
  border-radius: 1rem;
  color: white;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 128, 128, 0.2);
}

.welcome-banner h2 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.welcome-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.quick-action-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.quick-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar .nav-link span {
    display: none;
  }

  .sidebar .nav-link i {
    margin-right: 0;
  }

  .topbar {
    left: 70px;
  }

  .main-content {
    margin-left: 70px;
  }

  .search-bar {
    width: 200px;
  }
}

.exam-tabs {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.tab-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 20px;
}

.tab-btn {
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 12px 24px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #f8f9fa;
  border-color: var(--secondary);
}

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

.exam-stat-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.exam-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exam-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: white;
}

.exam-stat-card.upcoming .exam-stat-icon {
  background-color: var(--secondary);
}

.exam-stat-card.available .exam-stat-icon {
  background: linear-gradient(135deg, #007bff 0%, #0dcaf0 100%);
}

.exam-stat-card.completed .exam-stat-icon {
  background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
}

.exam-stat-card.missed .exam-stat-icon {
  background: linear-gradient(135deg, #dc3545 0%, #f8d7da 100%);
}

.exam-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 10px 0 5px;
}

.exam-stat-label {
  color: #6c757d;
  font-weight: 500;
}

.exam-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
}

.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exam-card.upcoming {
  border-left-color: var(--secondary);
}

.exam-card.available {
  border-left-color: var(--secondary);
}

.exam-card.completed {
  border-left-color: var(--secondary);
}

.exam-card.missed {
  border-left-color: #dc3545;
}

.exam-card-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.exam-info {
  flex: 1;
}

.exam-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.exam-subject {
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 10px;
}
.exam-instructor {
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.exam-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.exam-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.exam-detail-item i {
  color: var(--secondary);
  width: 16px;
}

.exam-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.exam-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.exam-btn.primary {
  background-color: var(--secondary);
  color: white;
}

.exam-btn.success {
  background-color: var(--secondary);
  color: white;
}

.exam-btn.warning {
  background-color: var(--secondary);
  color: white;
}

.exam-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.exam-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.exam-status-badge.upcoming {
  background: #d4edda;
  color: #155724;
}

.exam-status-badge.available {
  background: #cce5ff;
  color: #004085;
}

.exam-status-badge.completed {
  background: #e2e3e5;
  color: #383d41;
}

.exam-status-badge.missed {
  background: #f8d7da;
  color: #721c24;
}

.exam-progress {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.exam-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.exam-progress-bar.upcoming {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.exam-progress-bar.available {
  background: linear-gradient(90deg, #007bff 0%, #0dcaf0 100%);
}

.tab-content {
  display: none;
}

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

.exam-search {
  margin-bottom: 20px;
}

.exam-filter {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* Chat Container */
.chat-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px 25px;
  border-bottom: 2px solid #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.chat-info h5 {
  margin: 0 0 2px 0;
  font-weight: 600;
  color: #333;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn:hover {
  background: var(--secondary);
  color: white;
  transform: scale(1.05);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.message-group {
  margin-bottom: 20px;
}

.message-date {
  text-align: center;
  color: #6c757d;
  font-size: 0.8rem;
  margin: 20px 0;
  position: relative;
}

.message-date:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
  z-index: 1;
}

.message-date span {
  background: white;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-end;
}

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

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

.message-content {
  max-width: 70%;
  padding: 15px 18px;
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
}

.message.received .message-content {
  background: white;
  border-bottom-left-radius: 5px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
  border: 1px solid #f1f1f1;
}

.message.sent .message-content {
  background-color: var(--secondary);
  color: white;
  border-bottom-right-radius: 5px;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.message-content ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.message-content li {
  margin: 5px 0;
  font-size: 0.9rem;
}

.message-time {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 5px 15px 0;
  align-self: flex-end;
}

.message.sent .message-time {
  text-align: right;
}
/* Message Attachments */
.message-attachment {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.received .message-attachment {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #dc3545;
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.attachment-size {
  font-size: 0.75rem;
  opacity: 0.8;
}

.attachment-download {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message.received .attachment-download {
  background: #e9ecef;
  color: #6c757d;
}

.attachment-download:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 15px 0;
  color: #6c757d;
}

.typing-dots {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message Input */
.message-input-container {
  padding: 20px 25px;
  border-top: 2px solid #f8f9fa;
}

.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 12px 15px;
  gap: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.message-input-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem var(--teal);
}

.input-action-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.input-action-btn:hover {
  background: #e9ecef;
  color: var(--secondary);
}

.message-input-box {
  flex: 1;
}

.message-input {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 8px 0;
  max-height: 120px;
}
.message-input::placeholder {
  color: #adb5bd;
}

.send-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--secondary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-button:hover {
  transform: scale(1.05);
}

.send-button:active {
  transform: scale(0.98);
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

.conversations-list::-webkit-scrollbar {
  width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
  background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
  background: #e9ecef;
  border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .message-sidebar {
    margin-bottom: 20px;
  }

  .message-content {
    max-width: 85%;
  }

  .chat-header {
    padding: 15px 20px;
  }

  .chat-messages {
    padding: 15px 20px;
  }

  .message-input-container {
    padding: 15px 20px;
  }
}

/* New Message Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
}

.new-message-modal {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
}

.teacher-list {
  max-height: 300px;
  overflow-y: auto;
}

.teacher-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.teacher-item:hover {
  background: #f8f9fa;
}

.teacher-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.teacher-info h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
}

.teacher-department {
  color: #6c757d;
  font-size: 0.85rem;
}

.online-status {
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  margin-left: auto;
}

.offline-status {
  width: 12px;
  height: 12px;
  background: #6c757d;
  border-radius: 50%;
  margin-left: auto;
}

.message-sidebar {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.conversations-header {
  padding: 25px 25px 20px;
  border-bottom: 2px solid #f8f9fa;
}

.conversation-tabs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.conversation-tab {
  background: transparent;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.conversation-tab.active {
  background-color: var(--secondary);
  border: none;
  color: white;
}

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

.conversation-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  margin: 2px 0;
}

.conversation-item:hover {
  background: #f8f9fa;
}

.conversation-item.active {
  background: linear-gradient(90deg, var(--teal), var(--teal));
  border-left-color: var(--secondary);
}

.conversation-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.conversation-details {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.conversation-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-time {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
}

.conversation-preview {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subject-tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.subject-tag.cs {
  background: rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
}

.subject-tag.math {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.subject-tag.physics {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.unread-count {
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Chat Container */
.chat-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px 25px;
  border-bottom: 2px solid #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.chat-info h5 {
  margin: 0 0 2px 0;
  font-weight: 600;
  color: #333;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-action-btn:hover {
  background: var(--secondary);
  color: white;
  transform: scale(1.05);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.message-group {
  margin-bottom: 20px;
}

.message-date {
  text-align: center;
  color: #6c757d;
  font-size: 0.8rem;
  margin: 20px 0;
  position: relative;
}

.message-date:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
  z-index: 1;
}

.message-date span {
  background: white;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-end;
}

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

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

.message-content {
  max-width: 70%;
  padding: 15px 18px;
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
}

.message.received .message-content {
  background: white;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f1f1;
}

.message.sent .message-content {
  background-color: var(--secondary);
  color: white;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 8px var(--teal);
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.message-content ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.message-content li {
  margin: 5px 0;
  font-size: 0.9rem;
}

.message-time {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 5px 15px 0;
  align-self: flex-end;
}

.message.sent .message-time {
  text-align: right;
}

/* Message Attachments */
.message-attachment {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.received .message-attachment {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #dc3545;
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.attachment-size {
  font-size: 0.75rem;
  opacity: 0.8;
}

.attachment-download {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message.received .attachment-download {
  background: #e9ecef;
  color: #6c757d;
}

.attachment-download:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 15px 0;
  color: #6c757d;
}

.typing-dots {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message Input */
.message-input-container {
  padding: 20px 25px;
  border-top: 2px solid #f8f9fa;
}

.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 12px 15px;
  gap: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.message-input-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem var(--teal);
}

.input-action-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.input-action-btn:hover {
  background: #e9ecef;
  color: var(--secondary);
}

.message-input-box {
  flex: 1;
}

.message-input {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 8px 0;
  max-height: 120px;
}

.message-input::placeholder {
  color: #adb5bd;
}

.send-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--secondary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--teal);
}

.send-button:active {
  transform: scale(0.98);
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

.conversations-list::-webkit-scrollbar {
  width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
  background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
  background: #e9ecef;
  border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .message-sidebar {
    margin-bottom: 20px;
  }

  .message-content {
    max-width: 85%;
  }

  .chat-header {
    padding: 15px 20px;
  }

  .chat-messages {
    padding: 15px 20px;
  }

  .message-input-container {
    padding: 15px 20px;
  }
}

/* New Message Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
}

.new-message-modal {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
}

.teacher-list {
  max-height: 300px;
  overflow-y: auto;
}

.teacher-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.teacher-item:hover {
  background: #f8f9fa;
}
.teacher-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.teacher-info h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
}

.teacher-department {
  color: #6c757d;
  font-size: 0.85rem;
}

.online-status {
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  margin-left: auto;
}

.offline-status {
  width: 12px;
  height: 12px;
  background: #6c757d;
  border-radius: 50%;
  margin-left: auto;
}
/* Profile Edit Styles */
.profile-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f8f9fa;
}

.profile-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--teal);
}

.avatar-upload-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  /* padding: 15px 20px; */
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  border-color: var(--secondary);
  background: white;
}

.btn-save {
  background-color: var(--secondary);
  border: none;
  border-radius: 15px;
  padding: 15px 40px;
  font-weight: 600;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-save:hover {
  transform: translateY(-2px);
}

.btn-cancel {
  background: transparent;
  border: 2px solid #6c757d;
  border-radius: 15px;
  padding: 15px 40px;
  font-weight: 600;
  color: #6c757d;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.btn-cancel:hover {
  background: #6c757d;
  color: white;
}

.student-info-card {
  background-color: var(--secondary);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  color: white;
}

.student-info-card h5 {
  margin-bottom: 5px;
  font-weight: 700;
}

.student-info-card p {
  margin: 0;
  opacity: 0.9;
}

.profile-section-title {
  color: #495057;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
}

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

/* admin */

#select-box {
  height: 50px;
  overflow-y: auto;
  width: 520px;
}
option {
  overflow-y: scroll;
}

:root {
  --teal: #0aa6a6;
  --teal-600: #0a8f8f;
  --teal-50: #e6f7f7;
  --text: #273240;
  --muted: #6c7a89;
  --sidebar-w: 260px;
}

body {
  background-color: #e0f0f5;
  color: var(--text);
  font-family: "KantumruyPro-VariableFont_wght";
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}

/* Sidebar (white + teal active) */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
}

.sidebar .logo {
  padding: 14px 18px;
  border-bottom: 1px solid #e9ecef;
}

.sidebar .nav-link {
  color: #344054;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  margin: 2px 10px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: 0.15s ease;
}

.sidebar .nav-link:hover {
  background: var(--teal-50);
  color: #0a6161;
}

.sidebar .nav-link.active {
  background: var(--teal);
  color: #fff;
}

.content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.kpi h6 {
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.kpi h3 {
  margin: 0;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.table thead th {
  white-space: nowrap;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
}

.btn-teal:hover {
  background: var(--teal-600);
  color: #fff;
}

.badge-teal {
  background: var(--teal);
}

.footer {
  color: #6b7280;
  font-size: 0.9rem;
  border-top: 1px solid #e9ecef;
  padding: 14px 0;
}

@media (max-width: 991.98px) {
  :root {
    --sidebar-w: 100%;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .content {
    margin-left: 0;
  }
}
/* Keep your original sidebar CSS but add these specific mobile fixes */ 
.sidebar { 
  background: white; 
  min-height: 100vh; 
  width: 250px; 
  position: fixed; 
  left: 0; 
  top: 0; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
  z-index: 1000; 
  transition: transform 0.3s ease; 
} 
 
/* ONLY add mobile responsive rules - don't change existing desktop styles */ 
@media (max-width: 768px) { 
  .sidebar { 
    transform: translateX(-100%); 
    width: 280px; 
  } 
 
  .sidebar.show { 
    transform: translateX(0); 
  } 
 
  .main-content { 
    margin-left: 0 !important; 
    padding-top: 70px; 
  } 
} 
 
/* Mobile toggle button */ 
.mobile-toggle { 
  display: none; 
  position: fixed; 
  top: 20px; 
  left: 20px; 
  z-index: 1001; 
  background: var(--secondary); 
  color: white; 
  border: none; 
  border-radius: 8px; 
  padding: 10px 12px; 
  font-size: 18px; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
  cursor: pointer; 
} 
 
@media (max-width: 768px) { 
  .mobile-toggle { 
    display: block; 
  } 
} 
 
/* Sidebar overlay */ 
.sidebar-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0, 0, 0, 0.5); 
  z-index: 999; 
  display: none; 
} 
 
.sidebar-overlay.show { 
  display: block; 
} 
 
/* Close button */ 
.sidebar-close { 
  display: none; 
  position: absolute; 
  top: 15px; 
  right: 15px; 
  background: none; 
  border: none; 
  font-size: 24px; 
  color: #6c757d; 
  cursor: pointer; 
  z-index: 1002; 
} 
 
@media (max-width: 768px) { 
  .sidebar-close { 
    display: block; 
  } 
} 
 
/* Hide mobile toggle when sidebar is open */ 
@media (max-width: 768px) { 
  .sidebar.show ~ .mobile-toggle { 
    display: none; 
  } 
 
  /* Alternative approach - hide toggle when sidebar overlay is active */ 
  .sidebar-overlay.show ~ .mobile-toggle { 
    display: none; 
  } 
}