body, html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-rgb: 15, 23, 42;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-rgb: 37, 99, 235;
  --secondary: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

/* User Session Switcher - Top Sticky Utility Bar */
.role-switcher-bar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  z-index: 1000;
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-switcher-bar .logo-mini {
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.role-switcher-bar .logo-mini span {
  color: var(--accent);
}

.role-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.role-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.role-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.role-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Main Navbar */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 39px; /* directly below switcher */
  width: 100%;
  z-index: 990;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
    height: 36px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Mobil cihazlar için ek düzenleme */
@media (max-width: 768px) {
    .logo img {
        height: 28px !important; /* Mobilde logoyu biraz daha küçültüyoruz */
    }
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  background-color: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Page Wrapper */
.page-content-wrapper {
  min-height: calc(100vh - 120px);
}

/* Home Page styling */
.hero-section {
  padding: 80px 24px 60px 24px;
  background: radial-gradient(circle at 100% 0%, var(--accent-light) 0%, #ffffff 70%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 550px;
}

/* Main Search Bar */
.search-bar-wrapper {
  background-color: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  gap: 12px;
}

.search-input-group svg {
  color: var(--text-muted);
}

.search-input-group input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: var(--primary);
}

.search-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--accent-hover);
}

/* Branch filters */
.branch-filters-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.branch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-tag {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.branch-tag:hover, .branch-tag.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* How It Works section */
.how-it-works {
  padding: 80px 24px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px auto;
}

.section-title-wrapper h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-title-wrapper p {
  color: var(--text-muted);
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--accent-light);
}

.step-number {
  background-color: var(--accent);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Reviews Slider Section */
.reviews-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  overflow: hidden;
}

.reviews-carousel-outer {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.reviews-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.review-slide {
  min-width: 100%;
  padding: 40px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-color);
}

.review-stars {
  color: var(--secondary);
  font-size: 20px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 18px;
  font-style: italic;
  color: var(--primary-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.review-author {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.review-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--accent);
  width: 24px;
}

/* Teacher Avatar & Badges styling */
.teacher-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px auto;
}

.teacher-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Badge overlay classes */
.badge-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #fff;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.badge-badge.badge-expert {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  border: 1px solid #93c5fd;
}

.badge-badge.badge-student {
  background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%);
  border: 1px solid #fde68a;
}

/* Teachers Directory styling */
.directory-section {
  padding: 60px 24px;
}

.directory-container {
  max-width: 1200px;
  margin: 0 auto;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.teacher-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.teacher-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.teacher-title-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.teacher-rating-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.teacher-rating-row svg {
  color: var(--secondary);
}

.teacher-rating-row span {
  color: var(--text-muted);
  font-weight: 400;
}

.teacher-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.teacher-specialty-tag {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--primary);
}

.teacher-bio-snippet {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
  height: 68px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.teacher-card-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.price-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.price-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.price-amount span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.profile-btn {
  background-color: var(--bg-main);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.profile-btn:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Become a Teacher (Hoca Ol) Page */
.become-teacher-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.become-teacher-hero {
  margin-bottom: 40px;
}

.become-teacher-hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.become-teacher-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.benefit-item {
  padding: 24px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.benefit-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-apply-btn {
  background-color: var(--accent);
  color: #fff;
  font-size: 18px;
  padding: 14px 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.form-apply-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Blog / Directory List */
.blog-section {
  padding: 60px 24px;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-meta {
  padding: 24px 24px 0 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.blog-card-content {
  padding: 16px 24px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-btn {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-btn:hover {
  color: var(--accent-hover);
}

/* Dynamic Page Container Specifics */
.blog-detail-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.blog-detail-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.blog-detail-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-meta-row {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Academic Document Preview Standards */
.academic-doc {
  line-height: 1.5;
  text-align: justify;
  padding: 2.5cm; /* Corporate/Academic margin rule requirement */
  background-color: #fafafa;
  border: 1px solid #e5e5e5;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
  border-radius: 4px;
  color: #333333;
}

.academic-doc h2 {
  font-family: serif;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.academic-doc h3 {
  font-family: serif;
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.academic-doc p {
  margin-bottom: 16px;
  text-indent: 1cm;
}

/* Modal windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 22px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Teacher details custom elements */
.teacher-profile-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.teacher-profile-header-info {
  flex: 1;
}

.video-showcase-title {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: var(--primary);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.video-container iframe, .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Request forms inside modal */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--primary);
  background-color: var(--bg-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

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

/* Dashboards Styling */
.dashboard-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.dashboard-sidebar {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.sidebar-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px auto;
  background-color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 28px;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.sidebar-profile h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.sidebar-profile p {
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar-menu-item.active a, .sidebar-menu-item a:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.dashboard-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.dashboard-card-title-row h2 {
  font-size: 22px;
}

/* Stat Widget Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

.stat-widget {
  background-color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-widget-info h4 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-widget-info .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-widget-icon {
  background-color: var(--accent-light);
  color: var(--accent);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-widget-icon.success {
  background-color: var(--success-light);
  color: var(--success);
}

.stat-widget-icon.warning {
  background-color: var(--warning-light);
  color: var(--warning);
}

/* Timeline Pipeline Bar for Students */
.pipeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0;
}

.pipeline-container::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.pipeline-progress {
  position: absolute;
  top: 14px;
  left: 0;
  height: 4px;
  background-color: var(--success);
  z-index: 2;
  transition: var(--transition);
}

.pipeline-step {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 120px;
}

.pipeline-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 4px solid var(--border-color);
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.pipeline-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.pipeline-step.active .pipeline-dot {
  border-color: var(--success);
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.pipeline-step.active .pipeline-label {
  color: var(--success);
}

/* Schedule / List Views */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr 120px 100px;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  gap: 16px;
}

.schedule-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.schedule-date-badge {
  text-align: center;
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.schedule-date-badge span {
  display: block;
  font-size: 18px;
}

.schedule-details h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.schedule-details p {
  font-size: 13px;
  color: var(--text-muted);
}

.schedule-meta {
  font-size: 14px;
}

.schedule-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

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

.status-indicator {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-indicator.paid {
  background-color: var(--success-light);
  color: var(--success);
}

.status-indicator.unpaid {
  background-color: var(--danger-light);
  color: var(--danger);
}

.schedule-action .join-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.schedule-action .join-btn:hover {
  background-color: var(--accent-hover);
}

/* Admin / Advisor specific list layouts */
.admin-request-item {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 120px;
  align-items: center;
  padding: 20px 24px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 20px;
  margin-bottom: 16px;
}

.admin-req-student h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.admin-req-student p {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-req-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-req-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-req-actions {
  display: flex;
  gap: 8px;
}

.admin-btn {
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.admin-btn.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.admin-btn.btn-primary:hover {
  background-color: var(--accent-hover);
}

.admin-btn.btn-secondary {
  background-color: var(--primary-light);
  color: #fff;
}

.admin-btn.btn-secondary:hover {
  background-color: var(--primary);
}

/* System Toast Notifications Overlay */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: 100%;
}

.system-toast {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.system-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-body {
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.toast-body b {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding-left: 12px;
}

.toast-close-btn:hover {
  color: #ffffff;
}

/* Footer Section */
.main-footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 80px 24px 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #64748b;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.footer-links-col h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  font-size: 14px;
  color: #94a3b8;
  transition: var(--transition);
  text-decoration: none;
}

.footer-link-item a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

/* Responsive breakdowns */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 38px;
  }
  .hero-subtitle {
    margin: 0 auto 32px auto;
  }
  .search-bar-wrapper {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .branch-tags {
    justify-content: center;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .become-teacher-hero h1 {
    font-size: 32px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* simple responsive menu toggle would act here */
  }
  .schedule-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .schedule-date-badge {
    width: 80px;
    margin: 0 auto;
  }
  .schedule-action {
    margin-top: 8px;
  }
  .admin-request-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .admin-req-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .academic-doc {
    padding: 1.2cm;
  }
}

/* ======================================= */
/* REVISION 1: ADVANCED FILTERS STYLING    */
/* ======================================= */
.advanced-filters-box {
  background-color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.filter-group select, .filter-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  outline: none;
  transition: var(--transition);
}

.filter-group select:focus, .filter-group input:focus {
  border-color: var(--accent);
  background-color: #ffffff;
}

.filter-actions-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

@media (max-width: 992px) {
  .advanced-filters-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .advanced-filters-box {
    grid-template-columns: 1fr;
  }
}

/* ======================================= */
/* REVISION 2: USER MANAGEMENT STYLING     */
/* ======================================= */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--bg-main);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background-color: var(--accent-light);
}

.role-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-tag.student {
  background-color: #e0f2fe;
  color: #0369a1;
}

.role-tag.parent {
  background-color: #fef3c7;
  color: #b45309;
}

.role-tag.teacher {
  background-color: #dcfce7;
  color: #15803d;
}

/* ======================================= */
/* REVISION 3: TICKETING SYSTEM STYLING    */
/* ======================================= */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ticket-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.ticket-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.ticket-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.ticket-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.ticket-badge.status-open {
  background-color: #fee2e2;
  color: #b91c1c;
}

.ticket-badge.status-resolved {
  background-color: #dcfce7;
  color: #15803d;
}

.ticket-msg-body {
  font-size: 14px;
  color: var(--primary-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ticket-admin-reply-box {
  background-color: var(--bg-main);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  margin-top: 12px;
}

.ticket-reply-header {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ======================================= */
/* PREMIUM: INTERACTIVE MONTHLY CALENDAR   */
/* ======================================= */
.calendar-container {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 16px;
}

.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--primary);
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.calendar-header-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 10px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--border-color);
  gap: 1px; /* cell dividers */
}

.calendar-day-cell {
  background-color: #ffffff;
  min-height: 110px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.calendar-day-cell:hover {
  background-color: var(--bg-main);
}

.calendar-day-cell.weekend {
  background-color: #fafafa;
}

.calendar-day-cell.inactive {
  background-color: #f1f5f9;
  color: #94a3b8;
}

.calendar-day-number {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-light);
  align-self: flex-end;
  margin-bottom: 6px;
}

.calendar-day-cell.inactive .calendar-day-number {
  color: #cbd5e1;
}

.calendar-events-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow-y: auto;
}

.calendar-event-chip {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
  transition: var(--transition);
}

.calendar-event-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .calendar-day-cell {
    min-height: 80px;
    padding: 4px;
  }
  .calendar-day-number {
    font-size: 11px;
    margin-bottom: 2px;
  }
  .calendar-event-chip {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* ======================================= */
/* PREMIUM: AI CHATBOT WIDGET STYLING      */
/* ======================================= */
.ai-chatbot-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chatbot-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.chatbot-tooltip {
  position: absolute;
  right: 76px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.ai-chatbot-btn:hover .chatbot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.ai-chatbot-box {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: 520px;
  max-height: 80vh;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chatbot-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-header-title i {
  font-size: 24px;
  color: var(--accent-light);
}

.chatbot-header-title h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.chatbot-close-btn:hover {
  color: #ffffff;
}

.chatbot-messages-container {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chatbot-msg.bot {
  background-color: #ffffff;
  color: var(--primary);
  border-radius: 12px 12px 12px 0;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

.chatbot-msg.user {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 12px;
  align-self: flex-end;
}

.chatbot-options-container {
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chatbot-option-btn {
  background-color: #ffffff;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-option-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Chatbot matched teacher mini-card */
.chatbot-match-card {
  display: flex;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 8px;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.chatbot-match-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.chatbot-match-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.chatbot-match-info {
  flex-grow: 1;
}

.chatbot-match-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.chatbot-match-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chatbot-match-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.chatbot-match-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-match-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

@media (max-width: 480px) {
  .ai-chatbot-box {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 84px;
    height: 460px;
  }
}

/* ======================================= */
/* PREMIUM: CLOUD STORAGE & FILE SHARING   */
/* ======================================= */
.materials-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.materials-table th {
  background-color: var(--bg-main);
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px;
  text-align: left;
}

.materials-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.file-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 12px;
  color: #ffffff;
  margin-right: 8px;
}

.file-icon-badge.fmt-pdf { background-color: #ef4444; }
.file-icon-badge.fmt-zip { background-color: #f97316; }
.file-icon-badge.fmt-png { background-color: #8b5cf6; }
.file-icon-badge.fmt-doc { background-color: #3b82f6; }
.file-icon-badge.fmt-default { background-color: #64748b; }

.file-name-cell {
  display: flex;
  align-items: center;
}

.file-name-text {
  font-weight: 600;
  color: var(--primary);
}

.file-uploader-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}

.file-uploader-box:hover {
  border-color: var(--accent);
  background-color: #f8fafc;
}

/* ======================================= */
/* PREMIUM: ACHIEVEMENT BADGES SYSTEM      */
/* ======================================= */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.badge-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}

.badge-card.unlocked {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.badge-card.locked {
  opacity: 0.65;
  filter: grayscale(85%);
  background-color: #f8fafc;
}

.badge-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 32px;
  position: relative;
  transition: var(--transition);
}

.badge-card.unlocked .badge-icon-wrapper {
  background: radial-gradient(circle, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  animation: pulseGold 2s infinite;
}

.badge-card.locked .badge-icon-wrapper {
  color: #64748b;
  background-color: #e2e8f0;
}

.badge-lock-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.badge-card.unlocked .badge-lock-overlay {
  color: #d97706;
}

.badge-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.badge-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 36px;
  margin-bottom: 12px;
}

.badge-claim-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.badge-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.3);
  filter: brightness(1.05);
}

.badge-status-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.badge-status-tag.unlocked {
  color: #d97706;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ======================================= */
/* PREMIUM: PARENT NOTIFICATIONS FEED LOGS  */
/* ======================================= */
.parent-logs-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.parent-log-row {
  display: flex;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.parent-log-icon {
  font-size: 20px;
  color: var(--accent);
  padding-top: 2px;
}

.parent-log-body {
  flex-grow: 1;
}

.parent-log-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.parent-log-msg {
  font-size: 13px;
  color: var(--primary-light);
  line-height: 1.5;
}

/* ======================================= */
/* PREMIUM: TEACHER STUDENT MANAGEMENT     */
/* ======================================= */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.student-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.student-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.student-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-main);
  color: var(--primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  border: 2px solid var(--border-color);
}

.student-card:hover .student-card-avatar {
  background-color: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
}

.student-card-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 750;
  color: var(--primary);
  margin-bottom: 4px;
}

.student-card-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.student-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ======================================= */
/* PREMIUM: DIRECT MESSAGES FEED           */
/* ======================================= */
.student-message-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.student-message-bubble {
  display: flex;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.student-message-bubble:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.student-message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-main);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border-color);
}

.student-message-content {
  flex-grow: 1;
}

.student-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.student-message-author {
  font-size: 13px;
  font-weight: 750;
  color: var(--primary);
}

.student-message-text {
  font-size: 13.5px;
  color: var(--primary-light);
  line-height: 1.5;
}

/* ======================================= */
/* AUTHENTICATION & SESSION DROPDOWN      */
/* ======================================= */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.auth-tab-btn.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  margin-bottom: -2px;
}

.auth-tab-btn:hover:not(.active) {
  color: var(--primary);
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 750;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.profile-dropdown-btn:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
}

.profile-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  z-index: 999;
  padding: 8px 0;
  
  /* Smooth opacity & movement transitions with 0.3s closing delay */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  transition-delay: 0.3s;
}

/* Invisible pseudo-element to bridge the gap between button and dropdown */
.profile-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: transparent;
}

.profile-dropdown:hover .profile-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* Open immediately on hover entry */
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  cursor: pointer;
}

.profile-dropdown-item:hover {
  background-color: var(--bg-main);
  color: var(--accent);
}

.profile-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}

/* ======================================= */
/* MOBILE RESPONSIVE UTILITIES             */
/* ======================================= */
body, html {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.menu-toggle-btn:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: block;
  }
  
  .nav-container {
    position: relative;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: stretch;
    z-index: 1000;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu .nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
  }
  
  .nav-menu .nav-link::after {
    display: none;
  }
  
  .nav-menu #nav-action-slot {
    padding-top: 8px;
  }
  
  .profile-dropdown {
    width: 100%;
  }
  
  .profile-dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .profile-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
  }
  
  /* Stacking general grids */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .advanced-filters-box {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 20px !important;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .hero-text h1 {
    font-size: 32px !important;
  }
  
  .hero-subtitle {
    font-size: 15px !important;
  }

  /* Dashboard Panel Responsiveness */
  .dashboard-container {
    margin: 16px auto !important;
    padding: 0 12px !important;
    gap: 16px !important;
  }

  .dashboard-main, .dashboard-card, .dashboard-sidebar {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .dashboard-card-title-row h2 {
    font-size: 18px !important;
  }

  .badge-grid, .student-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .stat-widget {
    padding: 16px !important;
  }

  /* Prevent Horizontal Scroll & Overflow */
  html, body, #app-viewport, .page-content-wrapper, .dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

    /* Tüm sayfa genişliğini sabitle ve taşmayı engelle */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Header ve logoyu zorla küçült */
    header, .header-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 10px 0 !important;
    }

    .logo-img, .logo img {
        max-width: 120px !important; /* Logonun maksimum genişliği */
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 576px) {
  .advanced-filters-box {
    grid-template-columns: 1fr !important;
  }
  
  .search-bar-wrapper {
    flex-direction: column;
    border-radius: var(--radius-md) !important;
    padding: 16px !important;
  }
  
  .search-input-group {
    padding-left: 0 !important;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
  }
  
  .search-btn {
    width: 100%;
  }
}







