/* ========================================
   PMIK Dashboard - Design System
   Based on Stitch Dashboard PMIK
   Theme: Navy Blue #0056b2, Manrope font
   ======================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0056b2;
  --primary-dark: #003d80;
  --primary-light: #e8f1fc;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #0056b2;
  --primary-700: #003d80;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;

  --bg: #f0f4f8;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 4px 14px rgba(0, 86, 178, 0.25);

  --nav-height: 72px;
  --header-height: 0px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Variables & Overrides --- */
[data-theme="dark"] {
  --bg: #090e17;
  --surface: #162032;
  --text-primary: #f8fafc;
  --text-secondary: #94a3ba;
  --text-muted: #64748b;
  --border: #2a374a;
  --border-light: #1e293b;
  --primary-light: #1e3a8a;
  --primary-50: #172554;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] img {
  filter: brightness(0.85) contrast(1.1);
}

/* Force dark mode compatibility on specific elements with hardcoded bright colors */
[data-theme="dark"] [style*="background: #e0f2fe"],
[data-theme="dark"] [style*="background: #fdf2f8"],
[data-theme="dark"] [style*="background: #ecfdf5"],
[data-theme="dark"] [style*="background: #fff7ed"],
[data-theme="dark"] [style*="background: #f5f3ff"],
[data-theme="dark"] [style*="background: #f0fdf4"],
[data-theme="dark"] [style*="background: #fff1f2"],
[data-theme="dark"] [style*="background: #f0f7ff"],
[data-theme="dark"] [style*="background: #faf5ff"],
[data-theme="dark"] [style*="background: #fef3c7"],
[data-theme="dark"] [style*="background: #fffbeb"] {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

[data-theme="dark"] [style*="background: linear-gradient(135deg, #e0f2fe, #bae6fd)"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fce7f3, #fbcfe8)"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f1f5f9, #e2e8f0)"] {
  background: var(--border-light) !important;
}

[data-theme="dark"] .quick-menu-item,
[data-theme="dark"] .card {
  background: var(--surface) !important;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

ul,
ol {
  list-style: none;
}

/* --- App Shell --- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

#page-container {
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  animation: pageIn 0.35s ease-out;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Bottom Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  min-width: 56px;
}

.nav-item .material-icons-round {
  font-size: 24px;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-item.active .material-icons-round {
  color: var(--primary);
}

.nav-item.active span {
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.nav-item:active {
  transform: scale(0.92);
}

/* --- Header Section --- */
.header-greeting {
  padding: 20px 20px 0;
}

.greeting-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.greeting-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.notification-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.notification-btn:active {
  transform: scale(0.9);
}

.notification-btn .material-icons-round {
  font-size: 22px;
  color: var(--text-secondary);
}

.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.greeting-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.greeting-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section Title --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.section-link .material-icons-round {
  font-size: 16px;
}

/* --- Card Styles --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-md);
  border: none;
}

/* --- Quick Menu Grid --- */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px;
}

.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.quick-menu-item:active {
  transform: scale(0.94);
  box-shadow: var(--shadow-md);
}

.quick-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-menu-icon .material-icons-round {
  font-size: 22px;
  color: white;
}

.quick-menu-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

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

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

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

.quick-menu-icon.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.quick-menu-icon.teal {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.quick-menu-icon.pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.quick-menu-icon.indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.quick-menu-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* --- Upcoming Class Card --- */
.class-card {
  margin: 0 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.class-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.class-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.class-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.class-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.class-card-meta .material-icons-round {
  font-size: 16px;
}

.class-card-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: var(--transition);
}

.class-card-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.96);
}

/* --- News Card --- */
.news-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-card:active {
  transform: scale(0.98);
}

.news-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-thumb .material-icons-round {
  font-size: 32px;
  color: var(--primary);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* --- Regulation Cards --- */
.regulation-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.regulation-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.regulation-card:active {
  transform: scale(0.98);
}

.regulation-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--warning-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.regulation-icon .material-icons-round {
  font-size: 22px;
  color: var(--warning);
}

.regulation-content {
  flex: 1;
}

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

.regulation-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.regulation-arrow {
  color: var(--text-muted);
}

/* --- Tool Cards (ICD-10/9, etc.) --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 20px;
}

.tool-card {
  padding: 20px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
}

.tool-card:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-md);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-icon .material-icons-round {
  font-size: 26px;
  color: white;
}

.tool-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tool-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Search Bar --- */
.search-bar {
  margin: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 178, 0.1);
}

.search-bar .material-icons-round {
  font-size: 20px;
  color: var(--text-muted);
}

.search-bar input {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* --- List Items --- */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.list-item:active {
  background: var(--primary-50);
}

.list-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Profile Section --- */
.profile-header {
  text-align: center;
  padding: 32px 20px 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  overflow: hidden;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .material-icons-round {
  font-size: 40px;
  color: var(--primary);
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-role {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-menu {
  margin: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:active {
  background: var(--primary-50);
}

.profile-menu-item .material-icons-round {
  font-size: 22px;
  color: var(--primary);
}

.profile-menu-item .menu-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-menu-item .menu-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

/* --- Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-block {
  width: 100%;
}

/* --- Page Header (Sub pages) --- */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-header .back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-header .back-btn:active {
  background: var(--border-light);
}

.page-header .back-btn .material-icons-round {
  font-size: 22px;
  color: var(--text-primary);
}

.page-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 32px;
}

.empty-state .material-icons-round {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* --- PWA Install Banner --- */
.install-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideUp 0.4s ease-out;
}

.install-banner.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.install-banner-text {
  flex: 1;
}

.install-banner-title {
  font-size: 13px;
  font-weight: 700;
}

.install-banner-desc {
  font-size: 11px;
  opacity: 0.85;
}

.install-banner-btn {
  padding: 8px 16px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.install-banner-close {
  padding: 4px;
  opacity: 0.7;
}

.install-banner-close .material-icons-round {
  font-size: 18px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* --- Utility Classes --- */
.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.py-12 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

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

.gap-8 {
  gap: 8px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* --- Responsive for larger screens --- */
@media (min-width: 481px) {
  body {
    background: #e2e8f0;
  }

  #app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* --- Global Toast Notification --- */
.custom-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  min-width: 250px;
  max-width: 90%;
  background: var(--surface);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
}

.custom-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-toast.toast-success {
  border-left: 4px solid var(--success);
}

.custom-toast.toast-success .material-icons-round {
  color: var(--success);
}

.custom-toast.toast-error {
  border-left: 4px solid var(--danger);
}

.custom-toast.toast-error .material-icons-round {
  color: var(--danger);
}

.custom-toast.toast-info {
  border-left: 4px solid var(--primary);
}

.custom-toast.toast-info .material-icons-round {
  color: var(--primary);
}

.custom-toast .material-icons-round {
  font-size: 20px;
}

/* --- Custom App Spinner --- */
.spinner-logo {
  width: 56px;
  height: 56px;
  background-image: url('../icons/icon-512.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: logo-pulse 1.5s ease-in-out infinite;
  margin: 0 auto;
  display: block;
}

@keyframes logo-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(2, 132, 199, 0.4));
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}