/* style.css - GEO ACADEMY Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

html, body { overflow-x: hidden; }

.geo-logo-img {
  max-height: 200px !important;
  height: 200px !important;
  width: 200px !important;
}

:root {
  --blue: #1e3a8a;
  --blue-mid: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --red: #dc2626;
  --red-mid: #ef4444;
  --red-pale: #fef2f2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(30,58,138,0.12);
  --shadow-lg: 0 8px 32px rgba(30,58,138,0.18);
  --shadow-xl: 0 20px 60px rgba(30,58,138,0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --blue: #3b82f6;
  --blue-mid: #2563eb;
  --blue-light: #60a5fa;
  --blue-pale: #1e3a8a;
  --red: #ef4444;
  --red-mid: #f87171;
  --red-pale: #7f1d1d;
  --white: #1e293b;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-400: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-900: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LOGO ── */
.geo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.geo-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(30,58,138,0.3);
  flex-shrink: 0;
}

.geo-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.geo-logo-text .logo-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.geo-logo-text .logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ── NOTIFICATION SYSTEM ── */
.geo-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--blue);
}

.geo-notification.notif-success { border-left-color: #16a34a; }
.geo-notification.notif-error { border-left-color: var(--red); }
.geo-notification.notif-info { border-left-color: var(--blue-mid); }

.geo-notification.notif-show {
  transform: translateX(0);
}

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.geo-notif-success .notif-icon { background: #dcfce7; color: #16a34a; }
.geo-notif-error .notif-icon { background: var(--red-pale); color: var(--red); }
.geo-notif-info .notif-icon { background: var(--blue-pale); color: var(--blue-mid); }

.notif-text {
  font-size: 13.5px;
  color: var(--gray-700);
  flex: 1;
  line-height: 1.4;
}

.notif-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 18px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.notif-close:hover { color: var(--gray-700); }

/* ── ROLE BADGES ── */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-student { background: #dbeafe; color: #1e40af; }
.role-teacher { background: #d1fae5; color: #065f46; }
.role-admin { background: #fee2e2; color: #991b1b; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-approved { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* ── RESPONSIVE IMAGES ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════ */

.geo-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
}

.geo-toast {
  background: var(--white, #fff);
  border-radius: 12px;
  padding: 14px 18px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--blue-mid, #2563eb);
}

.geo-toast-show {
  transform: translateX(0);
  opacity: 1;
}

.geo-toast-hide {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.geo-toast-success { border-left-color: #16a34a; }
.geo-toast-error   { border-left-color: #dc2626; }
.geo-toast-info    { border-left-color: #2563eb; }

.geo-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.geo-toast-success .geo-toast-icon { background: #dcfce7; color: #16a34a; }
.geo-toast-error   .geo-toast-icon { background: #fee2e2; color: #dc2626; }
.geo-toast-info    .geo-toast-icon { background: #dbeafe; color: #2563eb; }

.geo-toast-msg {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700, #374151);
  line-height: 1.4;
}

.geo-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  font-size: 20px;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.geo-toast-close:hover { color: var(--gray-700, #374151); }

.geo-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.05);
}

.geo-toast-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: 0 0 0 3px;
}

.geo-toast-success .geo-toast-progress-bar { background: #16a34a; }
.geo-toast-error   .geo-toast-progress-bar { background: #dc2626; }
.geo-toast-info    .geo-toast-progress-bar { background: #2563eb; }

@media (max-width: 480px) {
  .geo-toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

