/* ==========================================================================
   CSS DESIGN SYSTEM - DASHBOARD ABSENSI & KETERLAMBATAN SISWA (SERVERLESS)
   ========================================================================== */

:root {
  /* Common variables */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-width: 260px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  
  /* Theme-specific variables (Default: Dark Theme) */
  --bg-app: #070b13;
  --bg-sidebar: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(21, 32, 54, 0.5);
  --bg-input: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.07);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow-color: rgba(0, 0, 0, 0.4);
  
  /* Accent colors */
  --color-primary: #6366f1; /* Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-secondary: #8b5cf6; /* Violet */
  --color-success: #10b981; /* Emerald */
  --color-success-soft: rgba(16, 185, 129, 0.12);
  --color-info: #0ea5e9; /* Sky */
  --color-info-soft: rgba(14, 165, 233, 0.12);
  --color-warning: #f59e0b; /* Amber */
  --color-warning-soft: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444; /* Rose */
  --color-danger-soft: rgba(239, 68, 68, 0.12);
}

/* Light Theme Variables */
.light-theme {
  --bg-app: #f8fafc;
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-input: #ffffff;
  --border-color: rgba(0, 0, 0, 0.06);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-color: rgba(99, 102, 241, 0.06);
  --color-primary-glow: rgba(99, 102, 241, 0.08);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: all var(--transition-normal);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.logo-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #c7d2fe, var(--color-primary) 50%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.logo-brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.logo-brand-school {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  opacity: 0.9;
  margin-top: 2px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text-main), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.btn-reset-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reset-app:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Sidebar Custom Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track,
.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb,
.sidebar-menu::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover, #4f46e5);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.light-theme .menu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.menu-item.active {
  background: var(--color-primary-glow);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.menu-item i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.menu-item:hover i {
  transform: translateX(2px);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.sync-badge-container {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.light-theme .sync-badge-container {
  background: rgba(0, 0, 0, 0.02);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-offline .status-dot {
  background-color: var(--text-muted);
  box-shadow: 0 0 8px var(--text-muted);
}

.status-connected .status-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.status-syncing .status-dot {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

/* Top Navbar */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-title-container h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-today {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 500;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
}

/* Dynamic Content Views */
.content-view-container {
  flex-grow: 1;
}

.content-view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.content-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Cards & Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
}

/* Card Glow Themes */
.purple-glow:hover { border-color: rgba(139, 92, 246, 0.4); }
.green-glow:hover { border-color: rgba(16, 185, 129, 0.4); }
.red-glow:hover { border-color: rgba(239, 68, 68, 0.4); }
.orange-glow:hover { border-color: rgba(245, 158, 11, 0.4); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.purple-glow .stat-icon {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.green-glow .stat-icon {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.red-glow .stat-icon {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.orange-glow .stat-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-info h3 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-trend {
  font-size: 12px;
  font-weight: 500;
}

/* Dashboard Layout Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 8px 30px var(--shadow-color);
  margin-bottom: 28px;
  transition: border-color var(--transition-fast);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
}

/* Chart Styles */
.chart-container-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 220px;
}

.svg-chart-wrapper {
  width: 100%;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

/* Table Design */
.custom-table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.max-h-400 { max-height: 400px; }
.max-h-500 { max-height: 500px; }

.minimal-table, .styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.minimal-table th, .styled-table th {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.05);
}

.minimal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.minimal-table tr:last-child td, .styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  transition: background-color var(--transition-fast);
}

.styled-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.light-theme .styled-table tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.01);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-semibold { font-weight: 600; }

.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--text-muted); }

/* Timeline Activity */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 16px;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-dot {
  position: absolute;
  left: -16px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-warning);
  border: 2px solid var(--bg-app);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.badge-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.badge-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label, label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.required {
  color: var(--color-danger);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.light-theme .form-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  padding-left: 36px !important;
}

/* Dropzone styling */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-dropzone.dragover, .upload-dropzone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}

.upload-icon {
  width: 54px;
  height: 54px;
  color: var(--color-primary);
  margin-bottom: 16px;
  transition: transform var(--transition-fast);
}

.upload-dropzone:hover .upload-icon {
  transform: translateY(-4px);
}

.cursor-pointer {
  cursor: pointer;
}

.hidden-input {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-icon-text i {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.btn-success {
  background: var(--color-success);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background: #0ea572;
}

.btn-danger {
  background: var(--color-danger);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--color-warning);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
  background: #d97706;
}

.btn-info {
  background: var(--color-info);
  color: #ffffff;
}

.btn-info:hover {
  background: #0284c7;
}

/* Grid helper utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.col-12, .col-6, .col-8, .col-4, .col-md-5, .col-md-7, .col-md-6, .col-md-8, .col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.d-flex { display: flex; }
.flex-shrink-0 { flex-shrink: 0; }
.w-100 { width: 100%; }
.w-200 { width: 200px; }
.h-100 { height: 100%; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 32px; padding-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.ml-auto { margin-left: auto; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.pt-4 { padding-top: 16px; }

/* Interactive Attendance Grid */
.table-interactive tbody tr {
  cursor: pointer;
}

/* Radio attendance styling */
.attendance-options {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.attendance-radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
  min-width: 70px;
}

.light-theme .attendance-radio-label {
  background: #ffffff;
}

.attendance-radio-input {
  display: none;
}

/* Active Radio Button Colors */
.input-hadir:checked + .attendance-radio-label {
  background-color: var(--color-success-soft);
  color: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 0 6px var(--color-success-soft);
}

.input-sakit:checked + .attendance-radio-label {
  background-color: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: var(--color-warning);
  box-shadow: 0 0 6px var(--color-warning-soft);
}

.input-izin:checked + .attendance-radio-label {
  background-color: var(--color-info-soft);
  color: var(--color-info);
  border-color: var(--color-info);
  box-shadow: 0 0 6px var(--color-info-soft);
}

.input-alpha:checked + .attendance-radio-label {
  background-color: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: 0 0 6px var(--color-danger-soft);
}

/* Searchable Dropdown for Late Student selection */
.searchable-select-container {
  position: relative;
}

.select-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  margin-top: 4px;
}

.dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-item:hover {
  background-color: var(--color-primary-glow);
}

.dropdown-item span.item-kelas {
  color: var(--text-muted);
  font-weight: 500;
}

/* Tab styling */
.tab-container {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
}

.tab-button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.tab-button:hover {
  color: var(--text-main);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Input Password toggle styling */
.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-password i {
  width: 18px;
  height: 18px;
}

/* Toast Notification Toast Style */
.notification-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  min-width: 300px;
  max-width: 450px;
  transform: translateX(100%);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-info); }
.toast-warning { border-left: 4px solid var(--color-warning); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: var(--color-primary);
  animation: progressTimer 3.5s linear forwards;
}

.toast-success .toast-progress { background-color: var(--color-success); }
.toast-error .toast-progress { background-color: var(--color-danger); }
.toast-info .toast-progress { background-color: var(--color-info); }
.toast-warning .toast-progress { background-color: var(--color-warning); }

@keyframes slideIn {
  to { transform: translateX(0); }
}

@keyframes progressTimer {
  from { width: 100%; }
  to { width: 0%; }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 19, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.double-bounce-spinner {
  width: 48px;
  height: 48px;
  position: relative;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
  background-color: var(--color-secondary);
}

@keyframes sk-bounce {
  0%, 100% { transform: scale(0.0) }
  50% { transform: scale(1.0) }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Alert Boxes */
.alert {
  display: flex;
  padding: 16px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
}

.alert-info-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.sync-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .sync-actions-grid {
    grid-template-columns: 1fr;
  }
}

.sync-action-box {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.sync-action-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hover-lift {
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-6px);
}

.card-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.bg-success-soft { background-color: var(--color-success-soft); }
.bg-warning-soft { background-color: var(--color-warning-soft); }
.large-icon { width: 32px; height: 32px; }

/* Empty state cards */
.empty-state-card {
  padding: 48px;
  text-align: center;
}

.empty-state-card h2 {
  font-size: 20px;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 20px 8px;
  }
  .sidebar .logo-text, .sidebar .menu-item span, .sidebar .sync-badge-container span:not(.status-dot) {
    display: none;
  }
  .sidebar-header {
    justify-content: center;
    margin-bottom: 24px;
  }
  .menu-item {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 70px;
    padding: 20px;
  }
  .top-navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .navbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   SUBMENU, SEGMENTED CONTROL & REPORT SEARCH STYLES
   ========================================================================== */

/* Sidebar Submenu */
.sidebar-submenu-group {
  display: flex;
  flex-direction: column;
}

.submenu-chevron {
  margin-left: auto;
  width: 16px !important;
  height: 16px !important;
  transition: transform var(--transition-fast) !important;
}

.sidebar-submenu-group.open .submenu-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 4px;
  border-left: 1px solid var(--border-color);
  animation: submenuSlideDown 0.2s ease-out forwards;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.submenu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.light-theme .submenu-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.submenu-item.active {
  background: var(--color-primary-glow);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.submenu-item i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.submenu-item:hover i {
  transform: translateX(2px);
}

@keyframes submenuSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .sidebar-submenu {
    padding-left: 0;
    border-left: none;
  }
  .submenu-item {
    justify-content: center;
    padding: 10px 0;
  }
  .submenu-item span {
    display: none;
  }
  .submenu-chevron {
    display: none;
  }
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.light-theme .segmented-control {
  background: rgba(0, 0, 0, 0.02);
}

.segment-button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-align: center;
}

.segment-button:hover {
  color: var(--text-main);
}

.segment-button.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Results Wrapper */
.student-search-results-wrapper {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-top: 12px;
}

.light-theme .student-search-results-wrapper {
  background: rgba(0, 0, 0, 0.01);
}

.minimal-table tr.selected-row td {
  background: rgba(99, 102, 241, 0.08) !important;
}

.minimal-table tr.selected-row {
  border-left: 3px solid var(--color-primary);
}

.btn-icon-only {
  padding: 8px;
  border-radius: var(--border-radius-sm);
  aspect-ratio: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   JURNAL GURU SPECIFIC STYLES
   ============================ */

.jurnal-tab-content {
  animation: fadeIn 0.3s ease-out;
}

.jurnal-kehadiran-summary {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.light-theme .jurnal-kehadiran-summary {
  background: rgba(0, 0, 0, 0.02);
}

.kehadiran-bar-container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.kehadiran-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.kehadiran-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   LOGIN OVERLAY
   ========================================================================== */

#login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.login-card {
  background: rgba(21, 32, 54, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  animation: loginFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-logo-wrap img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(99,102,241,0.4);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.login-app-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #c7d2fe, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-app-subtitle {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  letter-spacing: 0.3px;
}

.login-app-school {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
}

.login-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 24px;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  margin-bottom: 16px;
  display: none;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   SIDEBAR USER INFO
   ========================================================================== */

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-user-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.role-badge-admin    { color: #fbbf24; }
.role-badge-guru-piket { color: #34d399; }
.role-badge-osis     { color: #60a5fa; }
.role-badge-wali-kelas { color: #f59e0b; }

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #f87171;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(1.05);
}

/* ==========================================================================
   ACCOUNT MANAGEMENT VIEW
   ========================================================================== */

.role-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.role-pill-admin       { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.role-pill-guru-piket  { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.role-pill-osis        { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.role-pill-wali-kelas  { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

/* ==========================================================================
   ENHANCED RESPONSIVE & MOBILE POLISH (DESKTOP & MOBILE OPTIMIZATIONS)
   ========================================================================== */

/* Glassmorphism & Component Polish */
.dashboard-card {
  box-shadow: 0 10px 32px var(--shadow-color), 0 0 0 1px var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.dashboard-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-button:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-button.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.form-input, .form-select {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-icon-text {
  gap: 8px;
}

.custom-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th {
  background: rgba(15, 23, 42, 0.4);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.styled-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.styled-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* Tablet & Mobile Responsiveness (< 1024px, < 768px & < 480px) */
@media (max-width: 1024px) {
  .main-content {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 70px;
    padding: 16px 12px;
  }

  .top-navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }

  .page-title-container h1 {
    font-size: 22px;
  }

  .navbar-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dashboard-card {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-header .btn, .card-header .tab-button-group {
    width: 100%;
  }

  .tab-container {
    padding: 4px;
    width: 100%;
  }

  .tab-button {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
  }

  .styled-table th, .styled-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .modal-card {
    max-width: 94vw;
    margin: 10px;
  }

  .modal-body {
    padding: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .row {
    margin-right: -6px;
    margin-left: -6px;
  }

  .col-12, .col-6, .col-8, .col-4, .col-md-5, .col-md-7, .col-md-6, .col-md-8, .col-md-4 {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 60px;
    padding: 16px 4px;
  }

  .main-content {
    margin-left: 60px;
    padding: 12px 8px;
  }

  .login-card {
    padding: 28px 20px;
    margin: 16px;
  }

  .login-app-name {
    font-size: 24px;
  }

  .btn {
    width: 100%;
  }

  .d-flex.gap-2.justify-end {
    flex-direction: column-reverse;
    width: 100%;
  }

  .d-flex.gap-2.justify-end .btn {
    width: 100%;
    margin: 0 !important;
  }
}


