/* Modern Yönetim Paneli Stilleri */


body{
  padding-top: 70px;
}

/* Genel Container ve Layout */
.modern-container {
  max-width: 1200px;
  margin: 86px auto 40px;
  padding: 0 20px;
}

.modern-container.narrow {
  max-width: 580px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb a {
  color: #6366f1;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #d1d5db;
}

/* Modern Header */
.modern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modern-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-header .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.modern-header .icon.blue {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.modern-header .icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.modern-header .icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.modern-header .icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.modern-header .text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.modern-header .text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
}

.modern-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Modern Card */
.modern-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  margin-bottom: 24px;
}

.modern-card.compact {
  padding: 24px;
}

/* Modern Form */
.modern-form-group {
  margin-bottom: 24px;
}

.modern-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.modern-form-group .label-icon {
  margin-right: 6px;
  color: #6b7280;
  font-size: 12px;
}

.modern-form-group input,
.modern-form-group select,
.modern-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.modern-form-group input:focus,
.modern-form-group select:focus,
.modern-form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.modern-form-group input:hover,
.modern-form-group select:hover,
.modern-form-group textarea:hover {
  border-color: #9ca3af;
}

.modern-form-group .help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.modern-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Modern Select */
.modern-select-wrapper {
  position: relative;
}

.modern-select-wrapper::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.modern-select-wrapper select {
  appearance: none;
  padding-right: 40px;
}

/* Modern Buttons */
.modern-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
}

.modern-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: 1px solid transparent;
}

.modern-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.modern-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid transparent;
}

.modern-btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.modern-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid transparent;
}

.modern-btn-warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.modern-btn-secondary {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.modern-btn-secondary:hover {
  background: #f1f5f9;
  color: #475569;
}

.modern-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: 1px solid transparent;
}

.modern-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.modern-btn.small {
  padding: 8px 16px;
  font-size: 12px;
}

.modern-btn.large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Modern Actions */
.modern-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.modern-actions.no-border {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Modern Table */
.modern-table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.modern-table-header {
  background: #f8fafc;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 800;
  color: #334155;
  font-size: 14px;
}

.modern-table-row {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

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

.modern-table-row:hover {
  background: #f8fafc;
}

.modern-table-cell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-table-cell.actions {
  flex: none;
  justify-content: flex-end;
}

/* Modern List */
.modern-list {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.modern-list-item {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}

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

.modern-list-item:hover {
  background: #f8fafc;
}

.modern-list-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modern-list-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 18px;
}

.modern-list-text h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.modern-list-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.modern-list-actions {
  display: flex;
  gap: 8px;
}

/* Modern Badge */
.modern-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.modern-badge.success {
  background: #d1fae5;
  color: #065f46;
}

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

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

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

.modern-badge.secondary {
  background: #f1f5f9;
  color: #475569;
}

/* Modern Alert/Message */
.modern-alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.modern-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.modern-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.modern-alert.warning {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  color: #d97706;
}

.modern-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

/* Modern Search/Filter */
.modern-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modern-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
}

.modern-search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Modern Stats */
.modern-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.modern-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.modern-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modern-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.modern-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.modern-stat-label {
  font-size: 14px;
  color: #64748b;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
  font-size: 12px;
}

.strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 4px 0;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-weak .strength-fill { width: 33%; background: #ef4444; }
.strength-medium .strength-fill { width: 66%; background: #f59e0b; }
.strength-strong .strength-fill { width: 100%; background: #10b981; }

/* Responsive */
@media (max-width: 768px) {
  .modern-container {
    padding: 0 16px;
    margin: 70px auto 20px;
  }
  
  .modern-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .modern-header-right {
    width: 100%;
    justify-content: flex-start;
  }
  
  .modern-card {
    padding: 20px;
  }
  
  .modern-actions {
    flex-direction: column;
  }
  
  .modern-btn {
    justify-content: center;
  }
  
  .modern-stats {
    grid-template-columns: 1fr;
  }
  
  .modern-list-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .modern-list-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.levels-section .levels-grid{
  grid-template-columns: repeat(1, 1fr);
  gap:0;
}

/* ====================================
   MODERN PUBLIC FOOTER STYLES
   ==================================== */

.modern-public-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
 
  position: relative;
  overflow: hidden;
}

.modern-public-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 24px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
 background: linear-gradient(to bottom right, #fffafa, #dad9d7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
Padding:5px;
}

.footer-logo-icon i {
  font-size: 24px;
  color: white;
}

.footer-logo-icon .site-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-description {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

/* Footer Links */
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 16px;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #6366f1;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #f8fafc;
  padding-left: 20px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.contact-item i {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  flex-shrink: 0;
}

/* Footer Social */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.social-link:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.social-link i {
  font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  margin-bottom: 24px;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.footer-love {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-love i {
  color: #ef4444;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-inner {
    padding: 40px 16px 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-links h4::after,
  .footer-contact h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-copyright {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 32px 12px 12px;
  }
  
  .footer-content {
    gap: 24px;
  }
  
  .footer-logo span {
    font-size: 20px;
  }
  
  .footer-logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .footer-logo-icon i {
    font-size: 20px;
  }
}

/* Form Section Headers */
.form-section-header {
  margin: 32px 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.form-section-header:first-child {
  margin-top: 0;
}

.form-section-header h3 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-header h3 i {
  color: #6366f1;
  font-size: 16px;
}

.form-section-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.form-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 1px;
}

/* Logo Upload Styles */
.logo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.logo-upload-container:hover {
  border-color: #6366f1;
  background: #f1f5f9;
}

.current-logo,
.logo-preview-new {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo-preview {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
}

.logo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-filename {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.remove-logo-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.remove-logo-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: #9ca3af;
  text-align: center;
}

.logo-placeholder i {
  font-size: 48px;
  opacity: 0.5;
}

.logo-placeholder p {
  margin: 0;
  font-size: 14px;
}

.logo-upload-container input[type="file"] {
  display: none;
}

.logo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  width: fit-content;
}

.logo-upload-btn:hover {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  color: white;
}

.logo-upload-btn i {
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .current-logo,
  .logo-preview-new {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-preview {
    width: 60px;
    height: 60px;
  }
  
  .logo-placeholder {
    padding: 24px 16px;
  }
  
  .logo-placeholder i {
    font-size: 32px;
  }
}

/* Level Management Styles */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .levels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }
}

#levels .modern-level-card{
  overflow: visible;
}

.level-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
}

.level-card.is-hidden {
  opacity: 0.6;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.level-thumb {
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.level-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.level-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.level-status.visible {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.level-status.hidden {
  background: rgba(107, 114, 128, 0.9);
  color: white;
}

.level-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.level-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.level-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.level-category-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.level-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 11px;
  color: #6b7280;
  flex-wrap: wrap;
}

.level-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.level-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.level-actions .modern-btn.small {
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 8px;
  font-weight: 600;
}

.level-actions .modern-btn.small i {
  font-size: 10px;
}

.filter-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
}

.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-controls input,
.filter-controls select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  min-width: 180px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
}

/* Modern Header Styles */

/* Admin Header */
.modern-admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.08);
  transition: all 0.2s ease;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.admin-logo:hover {
  transform: translateY(-1px);
}

.admin-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.admin-nav-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.admin-nav-btn.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.admin-nav-btn i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.admin-nav-btn:hover i {
  transform: scale(1.1);
}

.admin-nav-btn.logout-btn {
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.admin-nav-btn.logout-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.admin-nav-btn.add-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-nav-btn.add-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile Admin Header */
@media (max-width: 768px) {
  .admin-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .admin-nav {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .admin-nav-btn span {
    display: none;
  }
  
  .admin-nav-btn {
    padding: 8px;
    min-width: 40px;
    justify-content: center;
  }
}

/* Public Header */
.modern-public-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
 
  transition: all 0.3s ease;
}

.public-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.3s ease;
}

.public-logo:hover {
  transform: translateY(-2px);
  color: #ffa726;
}

.public-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(to bottom right, #fffafa, #dad9d7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.public-logo-icon .site-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.public-logo:hover .public-logo-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5);
  }
  50% {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.8), 0 0 0 8px rgba(255, 107, 107, 0.1);
  }
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.public-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.public-nav-btn:hover::before {
  left: 100%;
}

.public-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ffffff;
}

.public-nav-btn.cta-btn {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  font-weight: 700;
}

.public-nav-btn.cta-btn:hover {
  background: linear-gradient(135deg, #ff5252, #ff9800);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.5);
}

.public-nav-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.public-nav-btn:hover i {
  transform: scale(1.2);
}

.public-nav-btn span {
  z-index: 1;
  position: relative;
}

/* Mobile Public Header */
@media (max-width: 768px) {
  .public-header-inner {
    padding: 12px 16px;
    gap: 16px;
  }
  
  .public-logo {
    font-size: 18px;
  }
  
  .public-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .public-logo-icon .site-logo-img {
    width: 28px;
    height: 28px;
  }
  
  .public-nav {
    gap: 12px;
  }
  
  .public-nav-btn {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .public-nav-btn span {
    display: none;
  }
  
  .public-nav-btn {
    min-width: 44px;
    justify-content: center;
  }
  
  .public-nav-btn i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .public-header-inner {
    padding: 10px 12px;
  }
  
  .public-logo {
    font-size: 16px;
  }
  
  .public-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .public-logo-icon .site-logo-img {
    width: 24px;
    height: 24px;
  }
  
  .public-nav-btn {
    padding: 8px 12px;
    min-width: 40px;
  }
  
  .public-nav-btn i {
    font-size: 16px;
  }
}

/* Content Spacing for Fixed Headers */
.modern-content-spacing {
  margin-top: 86px;
}

@media (max-width: 768px) {
  .modern-content-spacing {
    margin-top: 76px;
  }
}

/* ================================
   Modern Homepage Design
   ================================ */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  padding-top: 86px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(102,126,234,0.08)"/><circle cx="5" cy="5" r="0.8" fill="rgba(102,126,234,0.05)"/><circle cx="25" cy="8" r="1" fill="rgba(102,126,234,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-dots)"/></svg>');
  pointer-events: none;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 167, 38, 0.3);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffa726;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.hero-badge i {
  font-size: 12px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 20px;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Action Button */
.hero-action {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px;
  z-index: 20;
}

.play-button {
  position: relative;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  border: none;
  border-radius: 25px;
  padding: 24px 48px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.5);
  overflow: hidden;
  min-width: 280px;
  justify-content: center;
}

.play-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(255, 107, 107, 0.6);
}

.play-button:active {
  transform: translateY(-2px) scale(1.02);
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.play-button:hover .play-icon {
  transform: scale(1.1) rotate(360deg);
}

.play-text {
  font-size: 22px;
  letter-spacing: 0.5px;
}

.play-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.play-button:hover .play-shine {
  left: 100%;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffa726;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.floating-card.card-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 167, 38, 0.1));
  animation: rotate 20s linear infinite;
}

.hero-shape.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-duration: 25s;
}

.hero-shape.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 40%;
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background:#eaebf9;
  position: relative;
  padding-bottom: 150px;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.categories-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Category Card */
.category-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
}

.category-card.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.03), #ffffff);
  border-color: rgba(34, 197, 94, 0.2);
}

.category-card.completed::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  z-index: 10;
}

/* Category Image */
.category-image {
  min-height: 120px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 64px;
  color: #cbd5e1;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 167, 38, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

/* Category Content */
.category-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

/* Progress */
.category-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-text {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.progress-percentage {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Category Meta */
.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f8fafc;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.meta-item i {
  color: #ff6b6b;
  font-size: 14px;
}

.difficulty {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.difficulty.easy {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.difficulty.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.difficulty.hard {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Loading & Empty States */
.loading-state {
  text-align: center;
  padding: 80px 40px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: #f8fafc;
  border-radius: 20px;
  border: 2px dashed #d1d5db;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-icon i {
  font-size: 36px;
  color: #9ca3af;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 12px 0;
}

.empty-state p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .categories-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 76px;
  }
  
  .hero-container {
    padding: 40px 20px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  .hero-stats {
    gap: 16px;
    flex-direction: column;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .hero-action {
    bottom: 40px;
  }
  
  .play-button {
    padding: 20px 36px;
    font-size: 18px;
    min-width: 240px;
  }
  
  .play-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .play-text {
    font-size: 18px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .categories-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-content {
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .feature-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 20px 16px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  
  .categories-container {
    padding: 0 16px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
}

/* ================================
   Category Page Design - Modern Redesign
   ================================ */

/* Category Hero Section */
.category-hero-section {

  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  padding-top: 20px;
  overflow: hidden;
}

.category-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="category-dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,107,107,0.1)"/><circle cx="5" cy="5" r="1" fill="rgba(255,167,38,0.08)"/><circle cx="35" cy="10" r="1.5" fill="rgba(255,107,107,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23category-dots)"/></svg>');
  pointer-events: none;
}

.category-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 30px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 600;
}

.breadcrumb-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.breadcrumb-separator {
  color: #64748b;
  font-size: 12px;
}

.breadcrumb-current {
  color: #ffa726;
  font-weight: 700;
}

/* Simplified Hero Layout */
.category-hero-simple {
  display: flex;
  align-items: center;
  gap: 24px;
}

.category-hero-image-small {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.category-hero-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.3);
}

.category-hero-info-simple {
  flex: 1;
}

.category-hero-title-simple {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

/* Compact Progress Stats */
.category-progress-compact {
  display: flex;
  gap: 20px;
}

.progress-stat-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 16px;
}

.stat-number-compact {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label-compact {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Legacy Hero Content (hide) */
.category-hero-main {
  display: none;
}

.category-hero-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 167, 38, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-hero-image:hover .hero-image-overlay {
  opacity: 1;
}

.category-hero-info {
  color: white;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.2);
  color: #ffa726;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.category-hero-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-hero-description {
  font-size: 20px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}

/* Progress Overview */
.category-progress-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.progress-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.progress-stat:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.progress-stat .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.progress-stat .stat-label {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Levels Section */
.category-levels-section {
  padding: 40px 0 80px;
  background: #ffffff;
  position: relative;
}

.category-levels-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.levels-header {
  text-align: center;
  margin-bottom: 40px;
}

.levels-title {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.levels-subtitle {
  font-size: 18px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.levels-grid-wrapper {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(229, 231, 235, 0.6);
}

/* Modern Levels Grid */
.category-levels-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  max-width: none;
}

/* Modern Level Cards */
.modern-level-card {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.modern-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 167, 38, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-level-card:hover::before {
  opacity: 1;
}

.modern-level-card:not(.locked):hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.4);
}

.modern-level-card.clicking {
  transform: scale(0.95);
}

.modern-level-card.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), #ffffff);
  border-color: rgba(34, 197, 94, 0.3);
}

.modern-level-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

.modern-level-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.level-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.level-number {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1;
}

.modern-level-card.completed .level-number {
  color: #059669;
}

.modern-level-card.locked .level-number {
  color: #94a3b8;
}

.level-status-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  z-index: 3;
}

.level-status-badge.completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.level-status-badge.locked {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.level-status-badge.available {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.modern-level-card:hover .level-status-badge.available {
  transform: scale(1.1);
}

.modern-level-card:hover .level-status-badge.completed {
  transform: scale(1.1);
}

.level-visitor-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  z-index: 3;
}

.level-visitor-badge .visitor-tooltip {
  position: absolute;
  bottom: 36px;
  right: 0;
  background: #0f172a;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.level-visitor-badge:hover .visitor-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.level-progress-ring {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  z-index: 1;
}

.progress-ring-bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: transparent;
}

.progress-ring-fill {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 167, 38, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-ring-fill.completed {
  opacity: 1;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
}

/* Level card footer removed */

/* Warning Message */
.category-warning-modern {
  margin-top: 40px;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.warning-icon {
  width: 40px;
  height: 40px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.warning-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px 0;
}

.warning-content p {
  font-size: 14px;
  color: #a16207;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .category-hero-simple {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .category-progress-compact {
    justify-content: center;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
  }
  
  .modern-level-card {
    min-height: 140px;
    padding: 16px;
  }
  
  .level-number {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .category-hero-section {
    min-height: 25vh;
    padding-top: 76px;
  }
  
  .category-hero-container {
    padding: 16px;
  }
  
  .category-hero-title-simple {
    font-size: 24px;
  }
  
  .category-progress-compact {
    flex-direction: column;
    gap: 12px;
  }
  
  .progress-stat-compact {
    justify-content: center;
  }
  
  .levels-title {
    font-size: 32px;
  }
  
  .levels-grid-wrapper {
    padding: 24px;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
  }
  
  .modern-level-card {
    min-height: 120px;
    padding: 12px;
  }
  
  .level-number {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .category-hero-title-simple {
    font-size: 20px;
  }
  
  .category-hero-image-small {
    width: 60px;
    height: 60px;
  }
  
  .hero-image-placeholder-small {
    font-size: 24px;
  }
  
  .category-levels-modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
  }
  
  .modern-level-card {
    min-height: 100px;
    padding: 8px;
    border-radius: 16px;
  }
  
  .level-number {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .level-status {
    font-size: 18px;
    margin-bottom: 8px;
  }
}

/* Legacy Support - Keep existing styles for backward compatibility */

/* Category Page Container */
.category-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

/* Back Button */
.category-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.08);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}

.category-back-btn i {
  color: #ff6b6b;
  font-size: 16px;
}

.category-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

/* Category Header */
.category-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.08);
}

.category-header-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.category-header-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-header-thumb i {
  font-size: 36px;
  color: #cbd5e1;
}

.category-header-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

/* Levels Grid */
.category-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  max-width: 800px;
}

/* Level Box */
.category-level-box {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(229, 231, 235, 0.6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #64748b;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  min-height: 80px;
}

.category-level-box:not(.locked):hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 255, 255, 0.95);
}

.category-level-box.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(241, 245, 249, 0.8);
}

.category-level-box.locked:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
}

/* Level Icons */
.category-level-box .lock {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.category-level-box .visitor-user {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #10b981;
  font-size: 14px;
}

.category-level-box .visitor-user .visitor-tooltip {
  position: absolute;
  bottom: 24px;
  right: 0;
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
}

.category-level-box .visitor-user .visitor-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0f172a;
}

.category-level-box .visitor-user:hover .visitor-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Warning Message */
.category-warning {
  display: none;
  margin-top: 20px;
  font-size: 14px;
  color: #d97706;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.category-warning i {
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Floating Teacher Button */
.category-fab-teacher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.category-fab-teacher:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 32px rgba(255, 107, 107, 0.5);
}

/* Modal Styles */
.category-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.category-modal[aria-hidden="false"] {
  display: flex;
}

.category-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.category-modal-dialog {
  width: 480px;
  max-width: calc(100% - 32px);
  z-index: 100;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  animation: categoryModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-modal-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.category-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.category-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.6);
  background: rgba(248, 250, 252, 0.8);
  color: #64748b;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-modal-close:hover {
  background: rgba(241, 245, 249, 0.9);
  transform: scale(1.1);
  color: #0f172a;
}

.category-modal-body {
  padding: 28px;
}

.category-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.category-modal-desc {
  font-size: 16px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.category-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-control-btn {
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-control-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.category-control-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.category-control-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.category-control-btn.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

@keyframes categoryModalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .category-levels-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 14px;
  }
  
  .category-level-box {
    min-height: 70px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .category-page-wrap {
    padding: 16px;
    padding-top: 90px;
  }
  
  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .category-header-thumb {
    width: 64px;
    height: 64px;
  }
  
  .category-header-title {
    font-size: 24px;
  }
  
  .category-levels-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
  }
  
  .category-level-box {
    min-height: 60px;
    font-size: 16px;
  }
  
  .category-fab-teacher {
    width: 56px;
    height: 56px;
    font-size: 20px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .category-levels-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
  }
  
  .category-level-box {
    min-height: 50px;
    font-size: 14px;
    border-radius: 12px;
  }
  
  .category-modal-dialog {
    width: calc(100% - 20px);
  }
  
  .category-modal-body {
    padding: 20px;
  }
  
  .category-control-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Modern Grid Container Styles - Oyun Sayfası Özel */

/* Start Point Colors - Grid ile aynı renkler */
:root {
   /* Yeni başlangıç noktası renkleri */
   --start-point-color-1: #e74c3c;  /* Kırmızı */
   --start-point-color-2: #2ecc71;  /* Yeşil */
   --start-point-color-3: #9b59b6;  /* Mor */
   --start-point-color-4: #f39c12;  /* Turuncu */
   --start-point-color-5: #1abc9c;  /* Turkuaz */
}

/* Modern Result Modal Buttons */
#result-modal .control-btn {
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

#result-modal .control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

#result-modal .control-btn:hover::before {
  opacity: 1;
}

#result-modal .control-btn i,
#result-modal .control-btn span {
  position: relative;
  z-index: 2;
}

/* Next Button - Primary */
#result-next-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 
    0 8px 24px rgba(16, 185, 129, 0.3),
    0 4px 12px rgba(16, 185, 129, 0.2);
}

#result-next-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 
    0 12px 32px rgba(16, 185, 129, 0.4),
    0 6px 16px rgba(16, 185, 129, 0.3);
}

#result-next-btn:active {
  transform: translateY(0) scale(0.98);
}

/* OK Button - Secondary */
#result-ok-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  box-shadow: 
    0 6px 20px rgba(107, 114, 128, 0.25),
    0 3px 10px rgba(107, 114, 128, 0.15);
}

#result-ok-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #4b5563, #374151);
  box-shadow: 
    0 10px 28px rgba(107, 114, 128, 0.35),
    0 5px 14px rgba(107, 114, 128, 0.25);
}

#result-ok-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile responsive for modal buttons */
@media (max-width: 768px) {
  #result-modal .control-btn {
    padding: 14px 20px;
    font-size: 15px;
    min-width: 120px;
    gap: 8px;
  }
  
  #result-next-btn:hover,
  #result-ok-btn:hover {
    transform: translateY(-1px) scale(1.01);
  }
}

@media (max-width: 480px) {
  #result-modal .control-btn {
    padding: 12px 18px;
    font-size: 14px;
    min-width: 100px;
    gap: 6px;
  }
  
  #result-next-btn:hover,
  #result-ok-btn:hover {
    transform: translateY(-1px);
  }
}

/* Modern grid container wrapper */
.modern-grid-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
 /* box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);*/
  position: relative;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08),
  0 4px 16px rgba(2, 6, 23, 0.04) !important;
  transition: all 0.3s ease;
  width: 100%;
 
  flex: 1;
}

.modern-grid-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Modern grid container */
.modern-grid-container {
  position: relative;
  z-index: 2;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

/* Modern grid title */
.modern-grid-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
}

/* Modern grid controls */
.modern-grid-controls {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.modern-control-group {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-control-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Modern control buttons */
.modern-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
}

.modern-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.modern-control-btn:hover::before {
  opacity: 1;
}

.modern-control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
  color: #4f46e5;
}

.modern-control-btn:active {
  transform: translateY(0) scale(0.98);
}

.modern-control-btn i {
  position: relative;
  z-index: 2;
}

/* Özel buton renkleri */
.modern-control-btn.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.modern-control-btn.btn-primary:hover {
  background: linear-gradient(135deg, #5457ee, #4338ca);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.modern-control-btn.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
  width:96px;
}

.modern-control-btn.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.modern-control-btn.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.modern-control-btn.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

.modern-control-btn.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.modern-control-btn.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

/* Mobile responsive for modern grid */
@media (max-width: 768px) {
  .modern-grid-wrapper {
    padding: 16px;
    border-radius: 10px;
    min-width: unset;
    width: 100%;
  }
  
  .modern-grid-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .modern-grid-controls {
    margin-top: 20px;
    gap: 12px;
  }
  
  .modern-control-group {
    padding: 6px;
    border-radius: 12px;
    gap: 8px;
  }
  
  .modern-control-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .modern-control-btn:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

@media (max-width: 480px) {
  .modern-grid-wrapper {
    padding: 16px;
    border-radius: 16px;
  }
  
  .modern-grid-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .modern-grid-controls {
    margin-top: 16px;
    gap: 8px;
  }
  
  .modern-control-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 8px;
  }
}

/* Modern Side Panel Styles */
.modern-side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  
}

.modern-instructions-panel {
  background: #ffffff;

  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 200px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.08),
0 4px 16px rgba(2, 6, 23, 0.04) !important;

}

.modern-instructions-panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.modern-instructions-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.modern-instructions-content {
  position: relative;
  z-index: 2;
 
  min-height: 120px;
}

/* Mobile responsive for modern side panel */
@media (max-width: 768px) {
  .modern-instructions-panel {
    padding: 20px;
    border-radius: 20px;
    min-height: 160px;
  }
  
  .modern-instructions-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .modern-instructions-content {
    padding: 16px;
    border-radius: 12px;
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .modern-instructions-panel {
    padding: 16px;
    border-radius: 16px;
    min-height: 140px;
  }
  
  .modern-instructions-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .modern-instructions-content {
    padding: 12px;
    border-radius: 10px;
    min-height: 80px;
  }
}

/* Modern Instructions List Styling */
.modern-instructions-content .instructions-list-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modern-instructions-content .instruction-group {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 16px 20px 16px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.modern-instructions-content .instruction-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.modern-instructions-content .instruction-group-title {
  
  color: #ffffff !important;
  width: 40px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-instructions-content .instruction-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-left: 0px;
}

.modern-instructions-content .instruction-step {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  overflow: visible;
  margin-top: 15px;
}

.modern-instructions-content .instruction-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.modern-instructions-content .instruction-step:hover::before {
  opacity: 1;
}

.modern-instructions-content .instruction-step:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.modern-instructions-content .instruction-step.done {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), #ffffff);
  border-color: rgba(34, 197, 94, 0.5);
  color: #059669;
  box-shadow: 
    0 6px 20px rgba(34, 197, 94, 0.2),
    0 3px 10px rgba(34, 197, 94, 0.1);
}

.modern-instructions-content .instruction-step.partial {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), #ffffff);
  border-color: rgba(245, 158, 11, 0.5);
  color: #d97706;
  box-shadow: 
    0 6px 20px rgba(245, 158, 11, 0.2),
    0 3px 10px rgba(245, 158, 11, 0.1);
}

/* Döngü blokları için turuncu tasarım */
.modern-instructions-content .instruction-step[style*="var(--loop-color)"],
.modern-instructions-content .instruction-step[style*="background-color: var(--loop-color)"],
.modern-instructions-content .instruction-step[style*="background: var(--loop-color)"] {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), #ffffff) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  color: #ea580c !important;
  box-shadow: 
    0 6px 20px rgba(249, 115, 22, 0.25),
    0 3px 10px rgba(249, 115, 22, 0.15) !important;
}

.modern-instructions-content .instruction-step[style*="var(--loop-color)"] .count,
.modern-instructions-content .instruction-step[style*="background-color: var(--loop-color)"] .count,
.modern-instructions-content .instruction-step[style*="background: var(--loop-color)"] .count {
  background: linear-gradient(to bottom right, #ff813b, #f86d1f) !important;
}

.modern-instructions-content .instruction-step i {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.modern-instructions-content .instruction-step .count {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border-radius: 8px;
  width: 100%;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 
    0 4px 12px rgba(239, 68, 68, 0.4),
    0 2px 6px rgba(239, 68, 68, 0.2);
  z-index: 3;
  transition: all 0.3s ease;
}

.modern-instructions-content .instruction-step:hover .count {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 
    0 6px 16px rgba(239, 68, 68, 0.5),
    0 3px 8px rgba(239, 68, 68, 0.3);
}

/* Mobile responsive for instructions */
@media (max-width: 768px) {
  .modern-instructions-content .instructions-list-root {
    gap: 16px;
  }
  
  .modern-instructions-content .instruction-group {
    padding: 16px;
    border-radius: 16px;
    border-width: 2px;
    box-shadow: 
      0 6px 24px rgba(2, 6, 23, 0.08),
      0 3px 12px rgba(2, 6, 23, 0.04);
  }
  
  .modern-instructions-content .instruction-group-title {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  
  .modern-instructions-content .instruction-steps {
    gap: 10px;
    margin-left: 48px;
  }
  
  .modern-instructions-content .instruction-step {
    min-width: 44px;
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border-width: 2px;
  }
  
  .modern-instructions-content .instruction-step i {
    font-size: 16px;
  }
  
  .modern-instructions-content .instruction-step .count {
    height: 18px;
    font-size: 10px;
    top: -10px;
  }
}

@media (max-width: 480px) {
  .modern-instructions-content .instructions-list-root {
    gap: 12px;
  }
  
  .modern-instructions-content .instruction-group {
    padding: 12px;
    border-radius: 12px;
  }
  
  .modern-instructions-content .instruction-group-title {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  
  .modern-instructions-content .instruction-steps {
    gap: 8px;
    margin-left: 44px;
  }
  
  .modern-instructions-content .instruction-step {
    min-width: 40px;
    height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  
  .modern-instructions-content .instruction-step i {
    font-size: 14px;
  }
  
  .modern-instructions-content .instruction-step .count {
    height: 16px;
    font-size: 9px;
    top: -8px;
  }
}

/* Loop Step Arrow ve Döngü Çizgisi Tasarımı */
.loop-step-arrow {
  position: absolute;
top: -10px;
color: var(--loop-color) !important;
z-index: 15;
padding: 10px;
border-radius: 12px;
/* background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); */
/* border: 2px solid var(--hover-color); */
/* box-shadow: 0 8px 24px rgba(234, 88, 12, 0.25),
0 4px 12px rgba(234, 88, 12, 0.15); */

font-size: 12px;
}

.loop-step-arrow:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 12px 32px rgba(234, 88, 12, 0.35),
    0 6px 16px rgba(234, 88, 12, 0.25);
}

/* SVG Döngü Connection Line - Yumuşak Köşeli Çizgi */
.loop-connection-svg {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  top: 62px; /* Step yüksekliğinden başla */
  height: 40px;
  overflow: visible;
}

.loop-connection-svg path {
  fill: none;
  stroke: #fdb993;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(234, 88, 12, 0.3));
  transition: all 0.3s ease;
}

.loop-connection-svg:hover path {
  stroke: #dc2626;
  stroke-width: 4;
  filter: drop-shadow(0 4px 12px rgba(234, 88, 12, 0.4));
}

/* Loop Start ve End Step'leri için özel stiller */
.modern-instructions-content .instruction-step[data-loop-start="true"] {
  position: relative;
}

.modern-instructions-content .instruction-step[data-loop-end="true"] {
  position: relative;
}

/* Mobile responsive for loop elements */
@media (max-width: 768px) {
  .loop-step-arrow {
    top: -8px;
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 10px;
  }
  
  .loop-connection-svg {
    top: 44px;
    height: 35px;
  }
  
  .loop-connection-svg path {
    stroke-width: 2.5;
  }
  
  .loop-connection-svg:hover path {
    stroke-width: 3;
  }
}

@media (max-width: 480px) {
  .loop-step-arrow {
    top: -6px;
    padding: 4px 6px;
    font-size: 8px;
    border-radius: 8px;
  }
  
  .loop-connection-svg {
    top: 40px;
    height: 30px;
  }
  
  .loop-connection-svg path {
    stroke-width: 2;
  }
  
  .loop-connection-svg:hover path {
    stroke-width: 2.5;
  }
}

/* Category Levels Header Styles */
.levels-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.levels-header-text {
  flex: 1;
}

.levels-clear-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  margin-top: 4px;
  position: absolute;
right: 20px;
bottom: 30px;
}

.levels-clear-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.levels-clear-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.levels-clear-btn i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .levels-header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .levels-clear-btn {
    align-self: flex-end;
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .levels-clear-btn span {
    display: none;
  }
  
  .levels-clear-btn i {
    font-size: 14px;
  }
}
