:root {
  --primary: #6366f1;
  --success: #22c55e;
  --danger: #ef4444;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  background: #0f172a;
  display: flex;
  justify-content: center;
}

/* App Container */
.app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 50px;
}

/* Tablet view */
@media screen and (min-width: 426px) {
  .app {
    max-width: 768px;
    margin: 0 auto;
  }

  .mobile-header,
  .bottom-nav {
    max-width: 768px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin: 0 auto !important
  }

  .institute-name {
    font-size: 17px !important;
  }

  .teacher-name {
    font-size: 15px !important;
  }

  .header-avatar {
    width: 60px;
    height: 60px;
  }

  .menu-grid .icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    font-size: 32px !important;
  }

  .menu-grid p {
    font-size: 14px !important;
  }

  .nav {
    font-size: 16px;
  }

  .nav i,
  .nav span.icon {
    font-size: 26px !important;
  }

  .stat-card .stat-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
  }

  .stat-card h4 {
    font-size: 26px !important;
  }

  .stat-card p {
    font-size: 14px !important;
  }
}

/* Desktop view */


/* Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  /* ডিফল্ট অবস্থায় প্রায় সলিড সাদা */
  padding: 16px 15px;
  /* border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px; */
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* স্ক্রল করার পর আরও স্বচ্ছ এবং সাদা গ্লাস ইফেক্ট */
.mobile-header.scrolled {
  background: rgba(255, 255, 255, 0.45);
  /* আরও স্বচ্ছ করা হয়েছে */
  backdrop-filter: blur(16px);
  /* গ্লাসের ব্লার আরও বাড়ানো হয়েছে */
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
  /* উজ্জ্বল সাদা বর্ডার */
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* নতুন কালারফুল এডমিন আইকন */
.header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
  /* সুন্দর নীল বর্ডার */
  padding: 2px;
  /* বর্ডারের ভেতরে একটু ফাঁকা জায়গা */
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
  background-color: #f8fafc;
}

/* সুন্দর টেক্সট স্টাইল */
.header-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.institute-name {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1.2;
}

.teacher-name {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #3b82f6;
  /* এডমিনের নাম নীল রঙে হাইলাইট করা হলো */
  line-height: 1.2;
}

.teacher-mobile {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

/* সুন্দর গ্রেডিয়েন্ট লগ আউট বাটন */
.header-logout-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.header-logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.header-spacer {
  height: 100px;
  width: 100%;
}

.filter-box {
  margin: 0px 0px 16px;
  background: #ffffff;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-box select,
.filter-box input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
  background-color: #ffffff !important;
  /* Pure white */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
}

.filter-box select:focus,
.filter-box input:focus {
  border-color: #3498db !important;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15) !important;
}

.filter-box select option {
  background-color: #ffffff;
}

.filter-box button {
  padding: 10px 20px;
  border-radius: 14px;
  border: none;
  background: #3498db;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.filter-box button:hover {
  background: #2980b9;
}



/* Profile Card */
.profile {
  background: var(--card);
  margin: -42px 0px 10px;
  padding: 10px;
  border-radius: 15px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.profile h3 {
  margin: 0;
  font-size: 16px;
}

.profile span {
  font-size: 12px;
  color: var(--muted);
}

/* Info Cards */
.info-cards {
  padding: 0 0px 0px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.info-card {
  background: var(--card);
  border-radius: 15px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.info-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.info-card p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Icon Colors */
.blue .info-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.green .info-icon {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.red .info-icon {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.purple .info-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* Menu Grid */
.dashboard-container {
  padding: 5px 10px 5px 10px;
  /* Added bottom padding for footer space */
}

.menu-section {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 18px 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  /* Section depth */
}

.menu-section-title {
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 8px;
  padding-left: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 10px;
}

/* Make the menu item itself the glass block */
.menu-grid .menu-item {
  background: #ffffff !important;
  /* সলিড সাদা ব্যাকগ্রাউন্ড */
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  /* Thin bright white border */
  border-radius: 16px;
  padding: 10px 0 0 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-grid .menu-item:hover {
  transform: translateY(-5px);
  /* Lift up effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 2px 6px rgba(255, 255, 255, 0.7) !important;
  background: #ffffff !important;
}

.menu-grid .menu-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  padding: 1px;
  /* একদম চিকন পাতলা বর্ডার */
  border-radius: 17px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

/* মাল্টি-কালারের চিকন বর্ডার ইফেক্ট */
.menu-grid .menu-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(#ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  animation: rotate-border 3s linear infinite;
  animation-play-state: paused;
  /* মাউস নিলে বর্ডার কালারগুলো 'খুলবে' বা ঘুরবে */
  z-index: -1;
  opacity: 0.4;
}

.menu-grid .menu-link:hover::before {
  animation-play-state: running;
  opacity: 1;
}

.menu-grid .menu-link:hover::before {
  animation-play-state: running;
  opacity: 1;
}

.menu-grid .menu-link:hover {
  transform: translateY(-3px);
}

.menu-grid .menu-link .menu-item {
  border: none !important;
  /* আগের বর্ডার রিমুভ করা হলো */
  margin: 0;
}

@keyframes rotate-border {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.menu-grid .icon-wrapper {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.3s ease;
}

.menu-grid .menu-item:hover .icon-wrapper {
  transform: scale(1.1);
}

.menu-grid p {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  color: #374151;
  transition: color 0.3s ease;
}

.menu-grid .menu-item:hover p {
  color: #4f46e5;
}

/* Icon Background Colors (8 distinct colors) */
.bg-batches {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

/* Red */
.bg-students {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
}

/* Blue */
.bg-fees {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
}

/* Green */
.bg-notes {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
}

/* Amber */
.bg-unpaid {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #a855f7 !important;
}

/* Purple */
.bg-exam {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #ec4899 !important;
}

/* Pink */
.bg-online {
  background: rgba(20, 184, 166, 0.15) !important;
  color: #14b8a6 !important;
}

/* Teal */
.bg-notice {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #f97316 !important;
}

/* Orange */
.bg-settings {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #6366f1 !important;
}

/* Indigo */
.bg-add {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

/* Emerald */


/* Bottom Navigation */
/* মেইন ন্যাভিগেশন বার - গ্লাস ইফেক্ট এবং ফুল উইডথ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: 60px;

  /* আরও স্বচ্ছ গ্লাস ইফেক্ট */
  background: rgba(255, 255, 255, 0.35);
  /* আগে 0.75 ছিল, এখন আরও স্বচ্ছ করা হয়েছে */
  backdrop-filter: blur(20px);
  /* ব্লার ইফেক্ট বাড়ানো হয়েছে যাতে গ্লাস ফিলটা ভালো আসে */
  -webkit-backdrop-filter: blur(20px);

  /* গ্লাসের চকচকে বর্ডার এবং শ্যাডো */
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  /* গ্লাসের উপরের দিকের রিফ্লেকশন */
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  /* সাইডে হালকা গ্লেজ */
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  /* শ্যাডোটা আরেকটু সফট এবং ছড়ানো করা হয়েছে */

  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ন্যাভিগেশনের ভেতরের আইটেম */
.nav {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  /* আপনার var(--muted) ব্যবহার করতে পারেন */
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* আইকন ডিজাইন */
.nav i,
.nav span.icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

/* অ্যাক্টিভ (সিলেক্টেড) মেনুর স্টাইল */
.active {
  color: #4F46E5;
  /* আপনার ওয়েবসাইটের প্রাইমারি কালার বা var(--primary) দিন */
}

/* অ্যাক্টিভ মেনুর আইকনে একটু লাফানো (পপ) ইফেক্ট */
.active i,
.active span.icon {
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.4));
  /* আইকনে কালারফুল গ্লো */
}

/* Batch List */
/* List */


/* Batch link */
.batch-link {
  text-decoration: none;
  color: inherit;
}

.batch {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.batch-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.batch-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.batch-name {
  font-size: 14px;
  font-weight: 600;
}

.batch-status {
  font-size: 11px;
  color: var(--muted);
}

/* Actions */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toggle {
  width: 40px;
  height: 20px;
  border-radius: 20px;
  background: #ddd;
  position: relative;
  cursor: pointer;
}

.toggle.active {
  background: var(--success);
}

.toggle span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.toggle.active span {
  left: 22px;
}

.delete {
  font-size: 17px;
  color: var(--danger);
  cursor: pointer;
}

/* Create batch button */
.create-btn {
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  z-index: 90;
}




/* Student list */




.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info {
  flex: 1;
}

.info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.action-btn.delete {
  background: #fee2e2;
  color: var(--danger);
}



/* Form Card */
.form-card {
  background: var(--card);
  margin: 10px 5px 16px;
  /* -30 না */
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}


/* Inputs */
.group {
  margin-bottom: 14px;
}

.group label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.group input,
.group select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
}

.group input:focus,
.group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Button */
.btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}


/* List */



/* Student Card */


/* Left Section */
.left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}


/* Info */
.info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Right Side Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon Buttons */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  background: #eef2ff;
  color: var(--primary);
  transition: .2s;
}

.icon-btn:active {
  transform: scale(.9);
}

/* Toggle */
.switch {
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 20px;
  transition: .3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

input:checked+.slider {
  background: var(--success);
}

input:checked+.slider:before {
  transform: translateX(20px);
}


/* Fee page */
/* Filter */
.filter {
  margin: -20px 16px 16px;
  background: var(--card);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.filter label {
  font-size: 12px;
  color: var(--muted);
}

.filter select {
  margin-top: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* List */



/* Student card */



/* Avatar */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.avatar.paid {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.avatar.unpaid {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Info */
.info {
  flex: 1;
}

.info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Right */
.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status {
  font-size: 11px;
  font-weight: 600;
}

.status.paid {
  color: var(--success);
}

.status.unpaid {
  color: var(--danger);
}

.action-btn {
  padding: 4px 10px;
  font-size: 11px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.action-btn.paid {
  background: var(--primary);
  color: #fff;
}

.action-btn.unpaid {
  background: #e5e7eb;
  color: #6b7280;
}

/* Fee collection */
/* Student box */
.student-box {
  background: #fff;
  margin: 5px 5px 10px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
  text-align: center;
  line-height: 1;
}

.student-box h3 {
  font-size: 18px;
  color: var(--text-dark);
}

.student-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Summary */

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 5px 20px;
}

.stat {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.stat small {
  font-size: 11px;
  color: var(--text-muted);
}

.stat b {
  font-size: 16px;
  color: var(--primary);
}

/* List */
.list-label {
  padding: 0 25px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}



.payment-card {
  background: #fff;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
}

.p-info h4 {
  font-size: 15px;
  color: var(--text-dark);
}

.p-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.p-amount {
  text-align: right;
}

.p-amount b {
  font-size: 16px;
}

.status {
  font-size: 10px;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.action-btn.unpaid {
  text-decoration: none;
  padding: 4px 40px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--danger);
  color: #fff;
  border: none;
  transition: .2s;

}

.action-btn.paid {
  text-decoration: none;
  padding: 4px 40px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--success);
  color: #fff;
  border: none;
  transition: .2s;


}

/* FLOATING PLUS BUTTON */


/* Overlay + Form */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(3px);
  display: none;
  z-index: 101;
}

.form-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  width: 90%;
  max-width: 430px;
  background: #fff;
  padding: 30px 25px;
  border-radius: 24px;
  transition: .4s ease;
  z-index: 10000;
}

.form-sheet.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.overlay.active {
  display: block;
}

.form-sheet h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: 700;
}

/* Notes page */



.note-card {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);

}

.note-info {
  flex: 1;
}

.note-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.note-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.note-desc {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
}

/* Right icons */
.note-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}



/* Floating Add Button */
.add-btn {
  position: fixed;
  bottom: 110px;
  right: calc((100% - 430px)/2 + 20px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, .3);
}

/* Add Note page */
/* Form */




.input-group {
  margin-bottom: 16px;
}

.input-group label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.input-group textarea {
  resize: none;
  min-height: 70px;
}

/* Custom File Upload */
.file-box {
  border: 2px dashed #d1d5db;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: #f9fafb;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.file-box input {
  display: none;
}

.file-box:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Submit Button */
.submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  cursor: pointer;
}

/* Student list */


/* Student card */
.student {
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

/* Avatar */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.avatar.active {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.avatar.inactive {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Info */
.info {
  flex: 1;
}

.info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* Status + Action */
.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status {
  font-size: 11px;
  font-weight: 600;
}

.paid {
  color: var(--success);
}

.unpaid {
  color: var(--danger);
}

/* SMS Button */
.sms-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.sms-btn.active {
  background: var(--primary);
  color: #fff;
}

.sms-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Home Work */



.home_card {
  background: #fff;
  border-radius: 15px;
  margin: -10px 0px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.home_card-info {
  flex: 1;
}

.home_card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.preview {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* Home Work Create */



.input-group {
  margin-bottom: 16px;
}

.input-group label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.input-group textarea {
  resize: none;
}

/* Custom File Upload */
.file-box {
  border: 2px dashed #d1d5db;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: #f9fafb;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: .3s;
}

.file-box:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.file-box input {
  display: none;
}

/* Extra Info Badge */
.badge {
  font-size: 11px;
  background: #eef2ff;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
}

/* Video Class */
/* Class List */
.list {
  padding: 16px 0px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.class-card {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.class-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.class-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.class-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.view-btn {
  width: 34px;
  height: 34px;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}


/* Add Class FAB */


/* Video Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  z-index: 100;
}

.modal {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #000;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  transition: .4s;
  z-index: 1000;
}

.modal.active {
  bottom: 0;
}

.overlay.active {
  display: block;
}

.modal-header {
  background: #111;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  font-size: 20px;
  cursor: pointer;
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Class Create */
/* Form Card */



/* Title */
.form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Input group */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

/* Submit */
.submit-btn {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79, 70, 229, .3);
}

/* Helper text */
.helper {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Notice */
/* Notice Box */
.notice-box {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.notice-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.notice-box small {
  font-size: 12px;
  color: var(--muted);
}

.notice-box textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  min-height: 180px;
  /* ⬅ bigger */
  resize: none;
  outline: none;
}

/* Slim Send Button */
.send-btn {
  margin: 16px 20px 0;
  display: flex;
  justify-content: flex-end;
}

.send-btn button {
  padding: 10px 16px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .25);
}

/* Setting */
/* Section */
.section {
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sms-box {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.sms-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sms-box small {
  font-size: 11px;
  color: var(--muted);
}

.sms-box textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  resize: none;
  min-height: 80px;
  outline: none;
}

/* Update Button */
.update-btn {
  margin: 0 20px 20px;
  padding: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-align: center;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(79, 70, 229, .25);
}

/* MCQ */
.card {
  background: var(--card);
  margin: 5px 5px 5px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* Compact Table */
table.dataTable {
  font-size: 12px;
}

table.dataTable thead th {
  padding: 7px 6px;
  font-size: 12px;
}

table.dataTable tbody td {
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1.3;
  vertical-align: middle;
}

/* Action Icons */
.action-box {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.edit {
  background: #eef2ff;
  color: var(--primary);
}

.delete {
  background: #fee2e2;
  color: var(--danger);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Pagination smaller */
.dataTables_wrapper .dataTables_paginate {
  font-size: 12px;
}

.dataTables_wrapper .dataTables_info {
  font-size: 12px;
}

/* MCQ */
/* Form Card */



/* Input Group */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

textarea {
  resize: none;
  min-height: 100px;
}

/* Option Section */
.option-title {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
  transition: .2s;
}

.option-card.active {
  border: 2px solid var(--success);
  background: #f0fdf4;
}

.option-label {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.option-input {
  flex: 1;
}

.option-input input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

.option-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
  cursor: pointer;
}

/* Submit */
.submit-btn {
  margin-top: 12px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.submit-btn:active {
  transform: scale(.97);
}

/* Exam Link */
/* Header */



/* Info Line */
.info-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* URL Box */
.url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.url-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

/* Copy Button */
.copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: .2s;
}

.copy-btn:active {
  transform: scale(.95);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  transition: .3s;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Student View Styles */
.list_student {
  padding: 0 0px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-student {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.sv-student:active {
  transform: scale(0.98);
}

.sv-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.sv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sv-info {
  flex: 1;
}

.sv-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sv-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.sv-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle Switch for Student View */
.sv-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}

.sv-switch input {
  display: none;
}

.sv-slider {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 22px;
  transition: 0.3s;
  cursor: pointer;
}

.sv-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sv-switch input:checked+.sv-slider {
  background: var(--success);
}

.sv-switch input:checked+.sv-slider:before {
  transform: translateX(20px);
}

/* Icon Buttons */
.sv-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.sv-call-btn {
  background: #e0f2fe;
  color: #0284c7;
}

.sv-sms-btn {
  background: #fef3c7;
  color: #d97706;
}

.sv-icon-btn:active {
  transform: scale(0.9);
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab::before {
  content: "➕";
}

.fab:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Student List (index.blade.php) Styles */
.sl-student {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.sl-student:active {
  transform: scale(0.98);
}

.sl-left-area {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
}

.sl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sl-info {
  flex: 1;
}

.sl-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.sl-info p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sl-status {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.sl-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sl-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.sl-icon-btn:active {
  transform: scale(0.9);
}

.sl-btn-edit {
  background: #e0f2fe;
  color: #0284c7;
}

.sl-btn-delete {
  background: #fee2e2;
  color: #ef4444;
}

/* Edit Sheet / Overlay */
.sl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.sl-overlay.show {
  display: block;
}

.sl-sheet {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.sl-sheet.show {
  bottom: 0;
}

.sl-sheet h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.sl-group {
  margin-bottom: 12px;
}

.sl-group label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.sl-group input,
.sl-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #f9fafb;
  transition: border-color 0.2s;
}

.sl-group input:focus,
.sl-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.sl-sheet button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sl-sheet button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Homework List (home_work/index.blade.php) Styles */
.list_home_work {
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home_card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.home_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
  border-radius: 18px 0 0 18px;
}

.home_card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.home_card-info {
  flex: 1;
  padding-left: 8px;
  /* Room for the colored border */
}

.hw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hw-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.1);
}

.hw-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hw-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hw-preview {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  margin-right: 12px;
  border: 1px solid #f1f5f9;
}

.hw-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hw-icon-btn:active {
  transform: scale(0.9);
}

.hw-view {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.hw-view:active {
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.hw-delete {
  background: #fee2e2;
  color: #ef4444;
}

.hw-delete:active {
  background: #fca5a5;
}

/* Video Class List (video_class/index.blade.php) Styles */
.list_video_class {
  padding: 0 0px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vc-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.vc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #ec4899, #f43f5e);
  /* Beautiful pink/rose gradient */
  border-radius: 18px 0 0 18px;
}

.vc-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.vc-card-info {
  flex: 1;
  padding-left: 8px;
}

.vc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.vc-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.vc-batch-label {
  font-size: 0.85em;
  color: #e11d48;
  background: #ffe4e6;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  font-weight: 600;
}

.vc-meta {
  font-size: 12px;
  color: #ec4899;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vc-preview {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  margin-right: 12px;
  border: 1px solid #f1f5f9;
}

.vc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.vc-icon-btn:active {
  transform: scale(0.9);
}

.vc-view {
  background: linear-gradient(135deg, #10b981, #34d399);
  /* Emerald gradient for Play/View */
  color: white;
}

.vc-view:active {
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.vc-delete {
  background: #fee2e2;
  color: #ef4444;
}

.vc-delete:active {
  background: #fca5a5;
}

/* Modal specific for video class */
.vc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.vc-overlay.vc-active {
  display: block;
}

.vc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vc-modal.vc-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.vc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
}

.vc-close {
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #475569;
  transition: 0.2s;
}

.vc-close:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.vc-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  background: #000;
}

.vc-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Online Class List (online_class/index.blade.php) Styles */
.list_online_class {
  padding: 0 0px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oc-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.oc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #14b8a6, #0ea5e9);
  /* Beautiful Teal/Cyan gradient */
  border-radius: 18px 0 0 18px;
}

.oc-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.oc-card-info {
  flex: 1;
  padding-left: 8px;
}

.oc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.oc-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.oc-meta {
  font-size: 12px;
  color: #0d9488;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.oc-preview {
  font-size: 13px;
  padding-top: 5px;
}

.oc-meet-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  color: #0f766e;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #ccfbf1;
  transition: background 0.2s;
}

.oc-meet-link:active {
  background: #ccfbf1;
}

.oc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.oc-icon-btn:active {
  transform: scale(0.9);
}

.oc-edit {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  /* Blue gradient for Edit */
  color: white;
}

.oc-edit:active {
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.oc-delete {
  background: #fee2e2;
  color: #ef4444;
}

.oc-delete:active {
  background: #fca5a5;
}

/* Payment Settings (payment/index.blade.php) Styles */
.list_payment {
  padding: 0 0px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pay-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 16px;
}

.pay-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.pay-header p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0px;
}

.pay-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  margin-left: 16px;
  margin-right: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.pay-bkash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #e2136e;
  /* bKash Corporate Color */
  border-radius: 18px 0 0 18px;
}

.pay-nagad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #f36f21;
  /* Nagad Corporate Color */
  border-radius: 18px 0 0 18px;
}

.pay-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pay-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pay-bkash .pay-logo {
  background: #fdf2f8;
  color: #e2136e;
}

.pay-nagad .pay-logo {
  background: #fff7ed;
  color: #f36f21;
}

.pay-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pay-input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: #f8fafc;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.pay-input-group input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.pay-submit-btn {
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}

.pay-submit-btn:active {
  transform: scale(0.98);
}

.pay-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pay-toast.show {
  bottom: 80px;
}

/* Copy Link Settings (exam/link_view.blade.php) Styles */
.link-list-container {
  padding: 0 0 10px;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-list-item {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(229, 231, 235, 0.5);
  margin: 0 16px;
}

.link-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin-right: 15px;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-title::before {
  content: '📌';
  font-size: 14px;
}

.link-url-wrapper {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.link-url {
  font-size: 13px;
  color: #3b82f6;
  font-weight: 500;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: none;
  background: #ecfdf5;
  color: #10b981;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.copy-button:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.copy-button:active {
  transform: scale(0.95);
}

/* Corrected Copy Alert UI animating from the bottom */
.copy-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.copy-toast.show {
  bottom: 80px;
}

.sms-balance-tag {
  -webkit-text-fill-color: initial;
  background: rgba(255, 255, 255, 0.7);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-top: -3px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  float: right;
}

.sms-balance-tag.error {
  background: rgba(255, 65, 108, 0.1);
  color: #ff416c;
  border-color: rgba(255, 65, 108, 0.3);
  box-shadow: 0 2px 4px rgba(255, 65, 108, 0.1);
}

/* --- Shared CSS for Batch and Class --- */
.batch-wrapper {
  margin-bottom: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.batch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.batch-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #e8f8f5;
  margin-right: 15px;
}

.icon-1 {
  background: #e8f8f5;
}

.icon-2 {
  background: #fef9e7;
}

.icon-3 {
  background: #ebf5fb;
}

.icon-4 {
  background: #fdf2e9;
}

.icon-5 {
  background: #f4ecf8;
}

.icon-6 {
  background: #eaeded;
}

.batch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-name {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

.batch-meta {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

.batch-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  width: max-content;
  font-weight: 600;
}

.batch-status:contains('Active') {
  background: #e8f8f5;
  color: #27ae60;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toggle Switch styling */
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background-color: #bdc3c7;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
  padding: 0;
  margin-right: 4px;
}

.toggle-switch.active {
  background-color: #2ecc71;
}

.toggle-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active span {
  transform: translateX(16px);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  background: #f8fafd;
}

.icon-btn-edit {
  color: #f39c12;
  background: #fff4e5;
}

.icon-btn-delete {
  color: #e74c3c;
  background: #fdf0ed;
}

.icon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Center Modal Details (Replaced Bottom Sheet) */
.sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 25px 20px 30px;
  z-index: 2000;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.sheet.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.sheet h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #2c3e50;
  text-align: center;
  font-weight: 700;
}

.sheet input {
  width: 100%;
  padding: 14px;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  font-size: 15px;
  background-color: #f8fafd;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  margin-bottom: 15px;
}

.sheet input:focus {
  border-color: #3498db;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.sheet button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.sheet button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: block;
}

.alert-success {
  padding: 15px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-danger {
  padding: 15px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* App Link Card Styles */
.app-link-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.link-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.link-details {
  flex: 1;
  overflow: hidden;
}

.link-details h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.link-path {
  margin: 0;
  font-size: 13px;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.copy-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

/* View Card Design */
.view-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.view-card h2 {
  margin: 0 0 8px 0;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.view-card .meta {
  display: inline-block;
  padding: 6px 12px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 20px;
}

.view-card .image-box {
  margin: 0 -20px 20px -20px;
  text-align: center;
  background: #f8fafc;
  padding: 15px 20px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.view-card .image-box img {
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 0 !important;
}

.view-card .description-box {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #6366f1;
}

.view-card .description-box p {
  margin: 0;
}

/* Dashboard Stat Cards SVG Design */
.info-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 15px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.stat-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-content p {
  margin: 0;
  font-size: 8px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Dashboard Stat Cards Redesign --- */
.info-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 5px;
}

.stat-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-content h4 {
  margin: 0;
  font-size: clamp(16px, 5vw, 22px); /* মোবাইলে ছোট এবং বড় স্ক্রিনে আনুপাতিক হারে বড় হবে */
  font-weight: 800;
  line-height: 1.1;
  /* Gradient text placeholder - specific colors below */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-content p {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

/* Specific Card Themes */
.students-card {
  border-bottom: 2px solid #3b82f6;
}

.students-card .stat-icon-wrapper {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #3b82f6;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.15);
}

.students-card h4 {
  background-image: linear-gradient(135deg, #2563eb, #60a5fa);
}

.income-card {
  border-bottom: 2px solid #10b981;
}

.income-card .stat-icon-wrapper {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #10b981;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.15);
}

.income-card h4 {
  background-image: linear-gradient(135deg, #059669, #34d399);
}

.due-card {
  border-bottom: 2px solid #ef4444;
}

.due-card .stat-icon-wrapper {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #ef4444;
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.15);
}

.due-card h4 {
  background-image: linear-gradient(135deg, #dc2626, #f87171);
}

.batch-card {
  border-bottom: 2px solid #8b5cf6;
}

.batch-card .stat-icon-wrapper {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: #8b5cf6;
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.15);
}

.batch-card h4 {
  background-image: linear-gradient(135deg, #7c3aed, #a78bfa);
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .stat-content h4 {
    font-size: 18px;
  }

  .stat-content p {
    font-size: 10px;
  }
}

/* Attendance Create Page specific styles */
.attendance-student-card {
  background: #fff;
  border-radius: 16px;
  padding: 10px 4px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendance-student-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: #e2e8f0;
}

.attendance-toggle {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.attendance-toggle input[type="radio"] {
  display: none;
}

.attendance-toggle label {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #94a3b8;
  margin: 0;
}

.attendance-toggle label:hover {
  background: #e2e8f0;
  color: #475569;
}

.attendance-toggle input[type="radio"]:checked+label.present {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  transform: scale(1.05);
}

.attendance-toggle input[type="radio"]:checked+label.absent {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transform: scale(1.05);
}

.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.att-badge {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-badge.present {
  background: #dcfce7;
  color: #16a34a;
}

.att-badge.absent {
  background: #fee2e2;
  color: #dc2626;
}

/* Monthly View Styles */
.monthly-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
  border: 1px solid #f1f5f9;
}

.monthly-card .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monthly-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.monthly-card .info h4 {
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.monthly-card .info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.monthly-card .info p strong {
  color: #ef4444;
}

.btn-sms {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-sms:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-sms:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-sms.sent {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}