/*
 * UKK E-Learning School - Stylesheet
 * Custom CSS with modern, clean, and professional design system.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  /* Colors */
  --primary: #4da6ff;
  --primary-hover: #3399ff;
  --dark-bg: #0f172a;
  --dark-panel: #1e293b;
  --body-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  
  /* Alert / Accent Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Dimensions */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--dark-bg);
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 15px;
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--dark-bg);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Profile Dropdown & Controls */
.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.profile-pill:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.profile-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-pill span {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-bg);
}

.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sound-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.sound-toggle-btn.muted {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

/* Hamburger & Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--dark-bg);
  border-radius: 1px;
  transition: var(--transition);
}

/* Forms (Login/Register Card) */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(circle at 10% 20%, rgba(235, 244, 255, 0.8) 0%, rgba(248, 250, 252, 1) 90%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-header {
  padding: 36px 36px 12px;
  text-align: center;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo img {
  height: 64px;
  width: auto;
}

.auth-header h2 {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-body {
  padding: 12px 36px 36px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-bg);
  font-size: 14px;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--body-bg);
  color: var(--text-main);
  transition: var(--transition);
  font-size: 14px;
}

.form-control-icon {
  padding-left: 44px;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.15);
}

/* Alert Notification */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left-color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-left-color: var(--error);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(77, 166, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 12px -1px rgba(77, 166, 255, 0.3);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--dark-bg);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  background: var(--white);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(77, 166, 255, 0.02);
}

.btn-block {
  display: flex;
  width: 100%;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
  background: radial-gradient(120% 120% at 50% 10%, #e2efff 0%, var(--body-bg) 60%);
  border-bottom: 1px solid var(--glass-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(77, 166, 255, 0.12);
  color: #1e70e6;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.1));
  border-radius: var(--radius);
}

/* Stats Counter Section */
.stats-section {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(77, 166, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h3 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-bg);
  line-height: 1.2;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Search Area & Filter */
.search-section {
  padding: 60px 0 20px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.section-header h2 {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  background: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  padding: 6px;
  align-items: center;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(77, 166, 255, 0.15);
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-main);
}

.search-btn {
  background: var(--primary);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Subjects Page / Cards Grid */
.subjects-section {
  padding-bottom: 60px;
}

.category-group {
  margin-bottom: 48px;
}

.category-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-left: 14px;
}

.category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77, 166, 255, 0.3);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.card-badge-umum {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}

.card-badge-kejuruan {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

.card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--body-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card:hover .card-icon-box {
  background: rgba(77, 166, 255, 0.1);
  color: var(--primary);
}

.card-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--body-bg);
  padding-top: 16px;
  margin-top: auto;
}

.card-stats {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.card-action:hover {
  color: var(--primary-hover);
}

/* Material Detail Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.detail-main {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  overflow: hidden;
}

.detail-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--body-bg);
  padding-bottom: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.detail-article {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}

.detail-article p {
  margin-bottom: 16px;
}

.detail-article h4 {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.detail-article ul, .detail-article ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.detail-article li {
  margin-bottom: 6px;
}

.detail-article code {
  background: var(--body-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: #0f172a;
}

.detail-article pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 16px;
}

.detail-article pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 13px;
}

/* Sidebar Media Players */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.widget-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--body-bg);
  padding-bottom: 12px;
}

/* Media Players Custom Stylings */
.video-player-wrapper {
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--body-bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--glass-border);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-info .doc-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-text h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-bg);
}

.download-text p {
  font-size: 11px;
  color: var(--text-muted);
}

.download-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Complete Checklist Progress Checkbox */
.progress-checkbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.progress-checkbox-btn.uncompleted {
  background: rgba(77, 166, 255, 0.08);
  color: var(--primary);
  border-color: rgba(77, 166, 255, 0.2);
}

.progress-checkbox-btn.uncompleted:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.progress-checkbox-btn.completed {
  background: var(--success);
  color: var(--white);
}

.progress-checkbox-btn.completed:hover {
  background: #059669;
}

/* Photo Gallery Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background: var(--dark-bg);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 16px;
}

.lightbox-caption h4 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 4px;
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Profile Grid Page */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  text-align: center;
}

.profile-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(77, 166, 255, 0.2);
  padding: 4px;
}

.profile-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 4px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  cursor: pointer;
  transition: var(--transition);
  font-size: 24px;
}

.profile-avatar-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.profile-card h3 {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.profile-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

.role-student {
  background: rgba(77, 166, 255, 0.08);
  color: #1e70e6;
}

.profile-nav {
  margin-top: 24px;
  list-style: none;
  text-align: left;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.profile-nav-item:hover, .profile-nav-item.active {
  background: rgba(77, 166, 255, 0.08);
  color: var(--primary-hover);
}

.profile-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Profile Form Panels */
.profile-content {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-title {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--body-bg);
  padding-bottom: 12px;
}

/* User Timeline Progress list */
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--body-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.progress-details h4 {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--dark-bg);
  font-weight: 600;
  margin-bottom: 2px;
}

.progress-details p {
  color: var(--text-muted);
  font-size: 12px;
}

.progress-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(77, 166, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.contact-text h4 {
  font-family: var(--font-title);
  color: var(--dark-bg);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  height: 250px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

/* Footer styling */
.footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
}

.footer-brand .brand-logo img {
  height: 36px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-title);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a i {
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-audio-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-audio-control button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.footer-audio-control button:hover {
  color: var(--primary);
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary);
  min-width: 280px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-info { border-left-color: var(--info); }

.toast i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .detail-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { text-align: left; display: flex; align-items: center; gap: 24px; }
  .profile-avatar-container { margin: 0; }
  .profile-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .profile-nav-item { margin-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { height: auto; padding: 12px 0; }
  .hamburger { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-actions {
    margin-right: 16px;
  }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-title { font-size: 32px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  
  .stats-grid { grid-template-columns: 1fr; margin-top: 0; padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .profile-card { flex-direction: column; text-align: center; }
  .profile-avatar-container { margin: 0 auto 16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .detail-main { padding: 20px; }
  .profile-content { padding: 20px; }
  .contact-form-panel { padding: 20px; }
}