/* Modern Premium CSS Stylesheet for LCU FindMe */

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --primary: #1a56db;       /* Logo Royal Blue */
  --primary-hover: #1740b0; /* Stronger Royal Blue */
  --primary-light: rgba(26, 86, 219, 0.08); /* Very Light Royal Blue */
  
  --secondary: #0f3490;     /* Deep logo blue for headings */
  --accent: #3b82f6;        /* Sky Blue */
  
  --text-dark: #0c1f5e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  
  /* Layout & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-premium: 0 20px 40px -15px rgba(26, 86, 219, 0.08), 0 0 0 1px rgba(26, 86, 219, 0.02);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-smooth: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                       border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                       color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                       transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                       box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                       opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Element Specific Theme Bindings */
  --header-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --modal-bg: #ffffff;
  --nav-a-color: #334155;
}

body.dark-theme {
  --bg-primary: #030712;      /* True Slate Black */
  --bg-secondary: #0b0f19;    /* Deep slate-blue/navy */
  --bg-tertiary: #111827;     /* Dark Slate Gray */
  
  --primary: #3b82f6;       /* Bright blue contrast */
  --primary-hover: #60a5fa; 
  --primary-light: rgba(59, 130, 246, 0.15);
  
  --secondary: #f8fafc;
  --accent: #60a5fa;
  
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: #1f2937;    /* Slate-800 border */
  --border-hover: #374151;    /* Slate-700 hover */
  
  --success-bg: rgba(16, 185, 129, 0.08);
  --danger-bg: rgba(239, 68, 68, 0.08);
  --warning-bg: rgba(245, 158, 11, 0.08);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);

  --header-bg: rgba(3, 7, 18, 0.85);
  --card-bg: #0b0f19;
  --modal-bg: #0b0f19;
  --nav-a-color: #cbd5e1;
}


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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 0 var(--border-color), 0 4px 24px rgba(15,23,42,0.04);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px; /* iOS Squircle App Icon Tile */
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 
    0 4px 14px rgba(26, 86, 219, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Glassmorphic App Icon Gloss Specular Reflection */
.logo-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.logo-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 24px rgba(26, 86, 219, 0.3),
    0 0 0 3px rgba(212, 175, 55, 0.25);
  border-color: var(--primary);
}

.logo-badge:active {
  transform: translateY(0) scale(0.96);
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  position: relative;
  z-index: 1;
}

body.dark-theme .logo-badge {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* App Branding Text next to Logo Badge */
.logo-text-brand {
  display: flex;
  flex-direction: column;
}

.logo-text-brand .app-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary, #1a56db);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.logo-text-brand .app-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
  font-family: 'Outfit', sans-serif;
}

.logo-text h1 {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: -3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--nav-a-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

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

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.auth-buttons-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
}

.user-profile-mock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.85rem;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  border: 2px solid var(--primary);
}

/* Main Area */
main {
  flex-grow: 1;
}

/* Hero Section */
.hero-section {
  padding: 6rem 5% 5rem 5%;
  background:
    radial-gradient(ellipse 70% 50% at 85% 5%, rgba(26, 86, 219, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.hero-section h2 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-section h2 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Search Bar Component */
.search-container {
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  transition: var(--transition-smooth);
}

.search-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
}

.search-wrapper {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.search-icon {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-right: 0.75rem;
  margin-left: 0.5rem;
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 0.75rem 0.5rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

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

.search-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* App Stats Grid */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: -2rem auto 4rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.stat-card:hover::before { opacity: 1; }

.stat-card h3 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Dashboard Section */
.dashboard-section {
  padding: 2rem 5% 5rem 5%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.filter-tab.active {
  background-color: var(--bg-primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Category Filters */
.category-scroller {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem 0.25rem;
  scrollbar-width: thin;
}

.category-chip {
  padding: 0.6rem 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.category-chip.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.15);
}

/* Item Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Card Design */
.item-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 40px -12px rgba(37, 99, 235, 0.12), 0 0 0 1px var(--primary);
  border-color: var(--primary);
}

.card-image-area {
  height: 200px;
  background-color: var(--primary-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.card-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.item-card:hover .card-image-area img {
  transform: scale(1.05);
}

.placeholder-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  gap: 0.5rem;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.85;
}

.placeholder-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.badge-lost {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-found {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-returned {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(26, 86, 219, 0.25);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-light);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.1rem;
}

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

.card-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.card-location-icon {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--modal-bg);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(26, 86, 219, 0.08);
  border: 1px solid var(--border-color);
  transform: translateY(40px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1001;
  opacity: 0;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--modal-bg);
  z-index: 10;
}

.modal-title {
  font-size: 1.35rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 15;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

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

.modal-body {
  padding: 1.5rem;
  position: relative;
  z-index: 5;
}

/* Ensure all buttons inside modals are always clickable */
.modal-body .btn,
.modal-body button[type="submit"],
.modal-body .filter-tab,
.modal-body .modal-close {
  position: relative;
  z-index: 10;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent double-tap zoom on mobile for buttons */
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* Drag & Drop File Upload */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.preview-container {
  display: none;
  margin-top: 1rem;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 150px;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.remove-preview:hover {
  background-color: var(--danger);
}

/* Item Detail View specific */
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-image {
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

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

.detail-info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.info-item p {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
}

.detail-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Verification Frame */
.verification-box {
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.verification-box.claimed {
  background-color: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.2);
}

.verification-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.verification-box.claimed .verification-title {
  color: var(--success);
}

.verification-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   UPGRADED GLASSMORPHIC TOAST NOTIFICATIONS (LCU Brand System)
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  min-width: 330px;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #f8fafc;
  padding: 1.1rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 45px rgba(0, 33, 71, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  z-index: 100000;
  transform: translateY(-24px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.35s ease, 
              box-shadow 0.3s ease;
  overflow: hidden;
}

body:not(.dark-theme) .toast {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 45px rgba(0, 33, 71, 0.14), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toast.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.toast.active .toast-icon {
  transform: scale(1.08);
}

/* Toast variants styling */
.toast-success {
  border-left: 4.5px solid #10b981;
}
.toast-success .toast-icon {
  background-color: rgba(16, 185, 129, 0.18);
  color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.toast-error {
  border-left: 4.5px solid #ef4444;
}
.toast-error .toast-icon {
  background-color: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.toast-warning {
  border-left: 4.5px solid #f59e0b;
}
.toast-warning .toast-icon {
  background-color: rgba(245, 158, 11, 0.18);
  color: #d97706;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.toast-info {
  border-left: 4.5px solid #1a56db;
}
.toast-info .toast-icon {
  background-color: rgba(26, 86, 219, 0.18);
  color: #1a56db;
  box-shadow: 0 0 14px rgba(26, 86, 219, 0.25);
}

.toast-content {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.1px;
}

body:not(.dark-theme) .toast-content {
  color: #0f172a;
}

/* Toast progress bar */
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(90deg, #1a56db, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
}

.toast.active::after {
  animation: toastProgress 4s linear forwards;
}

.toast-success::after { background: linear-gradient(90deg, #10b981, #34d399); }
.toast-error::after { background: linear-gradient(90deg, #ef4444, #f87171); }
.toast-warning::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.toast-info::after { background: linear-gradient(90deg, #1a56db, #60a5fa); }

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-light);
}

.empty-title {
  font-size: 1.5rem;
  color: var(--secondary);
}

.empty-desc {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem;
}

/* Footer styling */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 5% 1.5rem 5%;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Phase 2 Interactive Features */

/* SVG Campus Map Styling */
.map-building {
  transition: var(--transition-smooth);
}

.map-building rect {
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.map-building:hover rect {
  fill: #dbeafe;
  stroke: var(--primary);
  filter: drop-shadow(0 4px 6px rgba(26, 86, 219, 0.15));
}

.map-building.active rect {
  fill: var(--primary);
  stroke: var(--primary-hover);
}

.map-building.active text {
  fill: white !important;
}

/* Match Suggestion Card Layout */
.match-card-item {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.5rem;
  transition: var(--transition-smooth);
}

.match-card-item:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.match-card-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.match-card-details {
  flex-grow: 1;
}

.match-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

/* Print Specific Rules for QR Tag Labels */
@media print {
  body * {
    visibility: hidden;
  }
  #print-label-area, #print-label-area * {
    visibility: visible;
  }
  #print-label-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    border: 3px solid #000000 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 2cm !important;
  }
  /* Force system background/printing values */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE SWEEP
   ========================================================================== */

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger:hover { background: var(--bg-secondary); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Tablet (max 992px) ---- */
@media (max-width: 992px) {
  header {
    padding: 0.85rem 4%;
  }

  .hamburger { display: flex; }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 5%;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 200;
  }

  #main-nav.mobile-open {
    display: flex;
  }

  #main-nav a {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  #main-nav a:hover {
    background: var(--primary-light);
  }

  nav a::after { display: none; }

  .auth-buttons-container {
    flex-direction: row;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    gap: 0.75rem;
  }

  .auth-buttons-container .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem !important;
    padding: 0.65rem 1rem !important;
  }

  .theme-toggle-btn { margin-left: 0.5rem !important; }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .logo-badge {
    width: 46px;
    height: 46px;
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }

  /* Modal full-screen bottom sheet on mobile */
  .modal-backdrop {
    align-items: flex-end;
    overscroll-behavior: contain;
  }

  .modal-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh;
    margin: 0;
    transform: translateY(100%);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal-backdrop.active .modal-container {
    transform: translateY(0);
  }

  .modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .modal-body {
    padding: 1.25rem !important;
  }

  /* Form rows stack */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Toast: full-width at bottom */
  .toast {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    min-width: unset;
    max-width: unset;
    width: calc(100% - 2rem);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer {
    padding: 2rem 5% 1.5rem 5%;
  }

  /* Items grid single column */
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Stats grid */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  /* Section header stacks */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-info-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Small Mobile (max 480px) ---- */
@media (max-width: 480px) {
  header {
    padding: 0.65rem 4%;
  }

  .logo-badge {
    width: 42px;
    height: 42px;
  }

  /* Buttons full width in action groups */
  .action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .action-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  /* Category chips scrollable */
  .category-scroller {
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .category-chip {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  /* Filter tabs compact */
  .filter-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Item cards touch-friendly */
  .item-card {
    border-radius: var(--radius-lg);
  }

  /* Welcome screen tighter on small phones */
  .mobile-app-shell {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .welcome-title {
    font-size: 1.65rem;
  }

  .native-app-card {
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .native-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  /* Split intro tighter on phone */
  .split-title { font-size: 1.65rem; }
  .split-subtext { font-size: 0.82rem; }
  .split-logo-trigger { width: 110px; height: 110px; }
  .split-logo-img { width: 72px; height: 72px; }
  .split-panel-top { padding-bottom: 4.5rem; }
  .split-panel-bottom { padding-top: 4.5rem; }

  /* Modal header title size */
  .modal-title { font-size: 1.15rem; }

  /* Form controls larger tap targets */
  .form-control {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}



/* --- Admin Portal Styles --- */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.admin-sidebar {
  width: 260px;
  background-color: var(--secondary);
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar-header .logo-icon {
  background: white;
  color: var(--primary);
}

.admin-sidebar-header h2 {
  color: white;
  font-size: 1.25rem;
  margin: 0;
}

.admin-nav {
  padding: 1rem 0;
  flex-grow: 1;
}

.admin-nav-item {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-topbar {
  background-color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-content {
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Data Tables */
.data-table-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  overflow-x: auto;
  margin-top: 1.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.data-table th, .data-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.data-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background-color 0.18s ease;
}

.data-table tbody tr:hover td {
  background-color: var(--primary-light);
}

.status-badge {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-active {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-returned {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* QR Scanner laser line animation */
@keyframes scanLine {
  0%   { top: 8%; opacity: 1; }
  48%  { opacity: 1; }
  50%  { top: 88%; opacity: 0.6; }
  52%  { opacity: 1; }
  100% { top: 8%; opacity: 1; }
}

.scan-laser {
  position: absolute;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, #f97316, #ef4444, transparent);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8), 0 0 16px rgba(239, 68, 68, 0.4);
  border-radius: 2px;
  animation: scanLine 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

/* Skeleton loading placeholder */
@keyframes skeletonShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 1200px 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

/* === NOTIFICATION BELL === */
.notif-bell {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  color: var(--text-muted);
  flex-shrink: 0;
}
.notif-bell:hover { background-color: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.notif-dropdown {
  position: fixed;
  top: 75px;
  right: 5%;
  width: 360px;
  background: var(--modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 500;
  display: none;
  overflow: hidden;
  transform-origin: top right;
  animation: popDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.notif-dropdown.open {
  display: block;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  background: rgba(26, 86, 219, 0.02);
}

#notif-list {
  max-height: 360px;
  overflow-y: auto;
}

#notif-list::-webkit-scrollbar {
  width: 5px;
}
#notif-list::-webkit-scrollbar-track {
  background: transparent;
}
#notif-list::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 10px;
}

.notif-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  line-height: 1.45;
  transition: all 0.2s ease;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text-dark);
  position: relative;
}

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

.notif-item:hover {
  background: var(--bg-secondary);
}

.notif-item.unread {
  background-color: var(--primary-light);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.notif-icon-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.notif-content-wrapper {
  flex: 1;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
}

.notif-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  order: 5;
}
.hamburger span { 
  display: block; 
  width: 100%; 
  height: 2px; 
  background: var(--text-dark); 
  border-radius: 2px; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; 
  transform-origin: left center;
}

/* Hamburger active transformation (X shape) */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  header { 
    padding: 0.85rem 5%; 
    flex-wrap: wrap; 
    position: relative; 
  }
  .hamburger { 
    display: flex; 
    margin-left: auto; 
  }

  #main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 5%;
    width: 90%;
    background-color: var(--modal-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.35rem;
    z-index: 100;
    opacity: 0;
    transform-origin: top center;
  }
  #main-nav.open { 
    display: flex; 
    animation: slideDownMobileNav 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes slideDownMobileNav {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  #main-nav a { 
    width: 100%; 
    padding: 0.8rem 1rem; 
    border-radius: var(--radius-md);
    font-size: 0.95rem; 
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s ease;
  }
  #main-nav a:hover {
    background-color: var(--bg-secondary);
    transform: translateX(4px);
  }
  #main-nav a.active {
    background-color: var(--primary-light);
    color: var(--primary);
  }
  #main-nav a::after { display: none; }
  #main-nav .btn { 
    width: 100%; 
    justify-content: center; 
    margin-top: 0.75rem; 
    padding: 0.8rem;
    font-weight: 600;
  }

  #main-nav .auth-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
  }

  #main-nav .auth-buttons-container .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }

  #main-nav .user-profile-mock {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0.5rem 0 0.5rem;
    border-radius: 0;
    background-color: transparent;
    border-left: none;
    border-right: none;
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  #main-nav .user-profile-mock .avatar {
    width: 36px;
    height: 36px;
  }

  #main-nav .user-profile-mock div:last-child {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  #main-nav .user-profile-mock .btn {
    flex: 1;
    justify-content: center;
    margin-top: 0;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .hero-section h2 { font-size: 1.9rem; }
  .hero-section { padding: 2.5rem 5% 5rem 5%; }

  .stats-container { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; margin-bottom: 2rem; }
  .items-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .modal-container { margin: 0.75rem; max-height: 92vh; }
  .detail-layout { grid-template-columns: 1fr !important; }
  .detail-info-row { grid-template-columns: 1fr 1fr !important; }

  .notif-dropdown { right: 2%; width: 94%; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .filter-tabs { width: 100%; overflow-x: auto; }
}

@media (max-width: 480px) {
  .hero-section h2 { font-size: 1.55rem; }
  .stats-container { grid-template-columns: 1fr; }
  .detail-info-row { grid-template-columns: 1fr !important; }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(20deg) scale(1.08);
  box-shadow: 0 0 0 4px var(--primary-light);
}

body.dark-theme .sun-icon { display: block !important; }
body.dark-theme .moon-icon { display: none !important; }
body:not(.dark-theme) .sun-icon { display: none !important; }
body:not(.dark-theme) .moon-icon { display: block !important; }

/* LCU Interactive SVG Map Enhancements */
#lcu-campus-map {
  background-color: var(--bg-tertiary) !important;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

#lcu-campus-map rect:first-of-type {
  fill: var(--bg-secondary) !important;
}

#lcu-campus-map path {
  stroke: var(--border-color) !important;
}

.map-building rect {
  fill: var(--bg-primary) !important;
  stroke: var(--primary) !important;
  transition: var(--transition-smooth);
}

.map-building text {
  fill: var(--text-dark) !important;
  transition: var(--transition-smooth);
}

.map-building:hover rect {
  fill: var(--primary) !important;
  stroke: var(--primary-hover) !important;
  filter: drop-shadow(0 0 6px var(--primary));
}

.map-building:hover text {
  fill: #ffffff !important;
}

.map-building.active rect {
  fill: var(--primary) !important;
  stroke: var(--primary-hover) !important;
  filter: drop-shadow(0 0 10px var(--primary));
}

.map-building.active text {
  fill: #ffffff !important;
}

/* Glow animation for form input location selection */
@keyframes locationGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.form-control.glow {
  animation: locationGlow 0.8s ease-out;
  border-color: var(--primary);
}

/* ====================================================
   FEATURE: INTERACTIVE ONBOARDING TOUR
   ==================================================== */

/* Dark backdrop overlay */
#tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* The spotlight hole punched out via radial gradient */
#tour-overlay .tour-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 35, 0.78);
  transition: background 0.35s ease;
}

/* Tour Tooltip Card */
#tour-tooltip {
  position: fixed;
  z-index: 9100;
  width: 320px;
  background: var(--modal-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(26, 86, 219, 0.15);
  padding: 1.5rem;
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
#tour-tooltip.transitioning {
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), left 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
#tour-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.tour-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.tour-step-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tour-tooltip-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin: 0;
}

.tour-tooltip-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tour-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tour-progress-dots {
  display: flex;
  gap: 6px;
}
.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.25s ease, transform 0.25s ease;
}
.tour-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.tour-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-tour-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.btn-tour-skip:hover { color: var(--danger); }

.btn-tour-next {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s, transform 0.2s;
}
.btn-tour-next:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Spotlight ring pulsed around target element */
.tour-spotlight-ring {
  position: fixed;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 20px rgba(26, 86, 219, 0.25);
  pointer-events: none;
  z-index: 9050;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: tourRingPulse 2s ease-in-out infinite;
}
.tour-spotlight-ring.transitioning {
  transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease;
}
.tour-spotlight-ring.visible {
  opacity: 1;
}

@keyframes tourRingPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 20px rgba(26, 86, 219, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(26, 86, 219, 0.08), 0 0 30px rgba(37, 99, 235, 0.4); }
}

/* Floating "?" Replay Tour button (bottom-right) */
#btn-replay-tour {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Outfit', sans-serif;
}
#btn-replay-tour:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}
#btn-replay-tour title { display: none; }

/* Tour finish state — confetti-ish sparkle */
@keyframes tourFinish {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.tour-finish-pulse {
  animation: tourFinish 0.5s ease;
}

/* ====================================================
   FEATURE: AUTO-MATCH BADGE (✨ Matched)
   ==================================================== */

.badge-matched {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  color: #78350f;
  border: 1px solid rgba(245, 158, 11, 0.4);
  /* Position: top-right of card image */
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  z-index: 6;
  animation: matchShimmer 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes matchShimmer {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35); }
  50% { background-position: 100% 50%; box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6); }
}

/* Dark theme adjustments for matched badge */
body.dark-theme .badge-matched {
  background: linear-gradient(135deg, #d97706, #f59e0b, #d97706);
  background-size: 200% 100%;
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ====================================================
   FEATURE: VERIFICATION LOG TAB (Admin)
   ==================================================== */

/* Tab indicator badge for new log entries */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  padding: 0 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1;
}

/* Verification log section */
#section-verif-log {
  display: none;
}
#section-verif-log.active {
  display: block;
}

/* Export CSV button */
.btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-export-csv:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Empty log state */
.verif-log-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.verif-log-empty .verif-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Chain-of-custody row highlight for new entries */
@keyframes logRowIn {
  from { background-color: var(--success-bg); }
  to { background-color: transparent; }
}
.log-row-new {
  animation: logRowIn 2s ease-out forwards;
}

/* Handover timestamp cell */
.log-timestamp {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Officer name cell */
.log-officer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Admin section toggle */
#section-dashboard {
  display: block;
}
#section-dashboard.hidden {
  display: none;
}

/* Admin nav active state */
nav a.active-admin {
  color: var(--primary) !important;
}
nav a.active-admin::after {
  width: 100% !important;
}

/* === RESPONSIVE ADMIN PORTAL STYLING === */
.log-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .log-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .data-table-wrapper {
    background: transparent;
    box-shadow: none !important;
    overflow-x: hidden;
  }
  
  .data-table {
    border: none;
    background: transparent;
    min-width: unset;
  }
  
  .data-table thead {
    display: none;
  }
  
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  
  .data-table tr {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
  }
  
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .data-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
  }
  
  .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 80px;
    margin-right: 1.5rem;
    text-align: left;
    word-break: break-word;
  }
  
  .data-table td .btn {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
  }
}

/* OTP Digit Inputs Styling */
.otp-inputs-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-digit-input {
  width: 48px;
  height: 56px;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-dark);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-sm);
}

.otp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.otp-digit-input::selection {
  background: transparent;
}

/* Progress/Timeline tracker inside item detail modals */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 2rem 0;
  padding: 0 1rem;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 14px;
  left: 1.5rem;
  height: 3px;
  background-color: var(--success);
  z-index: 2;
  transition: width 0.4s ease;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1;
  text-align: center;
}

.timeline-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
}

.timeline-step.completed .timeline-node {
  background-color: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.timeline-step.active .timeline-node {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.completed .timeline-label {
  color: var(--success);
}

.timeline-step.active .timeline-label {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Horizontal Split Sliding Intro & Welcome Entrance Hub (White Theme & Native App UI)
   ========================================================================== */

/* Strict Scroll & Viewport Lock while Intro Split is active */
html.intro-locked,
html.intro-locked body {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

html.intro-already-dismissed #intro-split-overlay {
  display: none !important;
}

#intro-split-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  width: 100%;
  width: 100vw;
  width: 100dvw;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: none;
  background-color: #0b1329;
  cursor: pointer;
}

#intro-split-overlay.hidden {
  display: none !important;
}

.split-panel-top {
  width: 100%;
  height: 50%;
  height: 50vh;
  height: 50dvh;
  flex: 1 1 50%;
  min-height: 50%;
  background-image: linear-gradient(180deg, rgba(8, 15, 30, 0.72) 0%, rgba(8, 15, 30, 0.45) 100%), url('senate-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 2px solid rgba(212, 175, 55, 0.7);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5.5rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.split-panel-bottom {
  width: 100%;
  height: 50%;
  height: 50vh;
  height: 50dvh;
  flex: 1 1 50%;
  min-height: 50%;
  background-image: linear-gradient(180deg, rgba(8, 15, 30, 0.45) 0%, rgba(8, 15, 30, 0.82) 100%), url('senate-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-top: 2px solid rgba(212, 175, 55, 0.7);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5.5rem;
  position: relative;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

/* Panel Content Styling */
.split-top-content, .split-bottom-content {
  text-align: center;
  color: #ffffff;
  max-width: 650px;
  padding: 0 1.5rem;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.split-badge {
  display: inline-block;
  padding: 0.45rem 1.6rem;
  background: rgba(8, 15, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 175, 55, 0.85);
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
}

.split-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.split-subtext {
  font-size: 1rem;
  color: #f1f5f9;
  margin-top: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.split-subtext-bottom {
  display: inline-block;
  padding: 0.55rem 1.8rem;
  background: rgba(8, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 175, 55, 0.25);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Center Dividing Line and Trigger */
.split-divider-center {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.5s ease-out, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease-out;
  will-change: opacity, transform, filter;
}

.split-glow-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.3) 15%, 
    #d4af37 50%, 
    rgba(212, 175, 55, 0.3) 85%, 
    transparent 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

.split-logo-trigger {
  pointer-events: auto;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 3.5px solid #d4af37;
  outline: 4px solid rgba(212, 175, 55, 0.25);
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(212, 175, 55, 0.45),
    inset 0 0 15px rgba(255, 255, 255, 0.9);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.35s ease, 
              outline-color 0.35s ease,
              outline-offset 0.35s ease;
  animation: pulseLogoBadgeSmooth 3s infinite ease-in-out;
  padding: 10px;
  will-change: transform, box-shadow;
}

.split-logo-trigger:hover {
  transform: scale(1.14) translateY(-3px);
  box-shadow: 
    0 26px 55px rgba(0, 0, 0, 0.45),
    0 0 55px rgba(212, 175, 55, 0.85),
    inset 0 0 25px rgba(255, 255, 255, 1);
  border-color: #ffd700;
  outline-color: rgba(255, 215, 0, 0.55);
  outline-offset: 6px;
}

.split-logo-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(26, 86, 219, 0.22));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
}

.split-logo-trigger:hover .split-logo-img {
  transform: scale(1.09);
  filter: drop-shadow(0 9px 20px rgba(26, 86, 219, 0.4));
}

.split-trigger-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #1a56db;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  padding: 2.5px 9px;
  background: rgba(26, 86, 219, 0.08);
  border-radius: 20px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.split-logo-trigger:hover .split-trigger-label {
  background: rgba(26, 86, 219, 0.16);
  color: #004085;
  transform: translateY(-1px);
}

@keyframes pulseLogoBadgeSmooth {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 22px rgba(212, 175, 55, 0.4);
    outline-color: rgba(212, 175, 55, 0.2);
    outline-offset: 4px;
  }
  50% {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 42px rgba(212, 175, 55, 0.75);
    outline-color: rgba(212, 175, 55, 0.45);
    outline-offset: 8px;
  }
}

/* Sliding Animation States */
#intro-split-overlay.split-open .split-panel-top {
  transform: translateY(-100%);
}

#intro-split-overlay.split-open .split-panel-bottom {
  transform: translateY(100%);
}

#intro-split-overlay.split-open .split-top-content {
  opacity: 0;
  transform: translateY(-30px);
}

#intro-split-overlay.split-open .split-bottom-content {
  opacity: 0;
  transform: translateY(30px);
}

#intro-split-overlay.split-open .split-divider-center {
  opacity: 0;
  transform: translateY(-50%) scale(1.4);
  filter: blur(8px);
}

/* ==========================================================================
   Welcome Portal Screen (Native Mobile App UI & Experience)
   ========================================================================== */

.welcome-screen-container {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.07) 0%, transparent 60%);
}

/* Native Mobile App Shell Container */
.mobile-app-shell {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(26, 86, 219, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

/* Mobile App Bar Header */
.app-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary, #f1f5f9);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-color);
}

.app-online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.welcome-header-badge {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #d4af37;
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.1);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  animation: floatBadge 4s ease-in-out infinite;
}

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

.welcome-header-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary, #1a56db);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

body.dark-theme .welcome-title {
  color: #ffffff;
}

.welcome-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent, #d4af37);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.welcome-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto 2rem auto;
  max-width: 440px;
}

/* Native App List Button Cards */
.native-app-options {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  margin-bottom: 2rem;
}

.native-app-card {
  width: 100%;
  background: var(--bg-primary, #ffffff);
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  outline: none;
}

.native-app-card:hover, .native-app-card:active {
  transform: translateY(-4px) scale(1.01);
  border-color: #d4af37;
  box-shadow: 0 14px 30px rgba(26, 86, 219, 0.1);
}

.native-app-card.signup-card:hover {
  border-color: #2563eb;
}

.native-app-card.login-card:hover {
  border-color: #d4af37;
}

.native-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.native-app-card:hover .native-card-icon {
  transform: scale(1.08);
}

.native-card-icon.signup-bg {
  background: rgba(26, 86, 219, 0.1);
  color: #2563eb;
}

.native-card-icon.login-bg {
  background: rgba(212, 175, 55, 0.15);
  color: #b48a1d;
}

body.dark-theme .native-card-icon.login-bg {
  color: #ffd700;
}

.native-card-text {
  flex: 1;
}

.native-card-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.2rem 0;
}

.native-card-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.native-card-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: center;
}

.native-app-card:hover .native-card-chevron {
  transform: translateX(4px);
  color: var(--primary);
}

.native-app-footer {
  padding-top: 0.5rem;
}

/* Responsive Mobile Sweep for Intro Split Overlay & Mobile UI */
@media (max-width: 640px) {
  .split-panel-top {
    padding-bottom: 4.6rem;
    background-size: cover;
    background-position: center top;
  }
  
  .split-panel-bottom {
    padding-top: 4.6rem;
    background-size: cover;
    background-position: center bottom;
  }

  .split-top-content, 
  .split-bottom-content {
    padding: 0 1rem;
  }

  .split-badge {
    font-size: 0.72rem;
    padding: 0.35rem 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.65rem;
  }

  .split-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .split-subtext {
    font-size: 0.88rem;
    margin-top: 0.45rem;
    line-height: 1.35;
  }

  .split-subtext-bottom {
    font-size: 0.8rem;
    letter-spacing: 2.2px;
    padding: 0.45rem 1.3rem;
  }

  .split-logo-trigger {
    width: 120px;
    height: 120px;
    padding: 8px;
    border-width: 3px;
    outline-width: 3px;
    outline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .split-logo-img {
    width: 68px;
    height: 68px;
  }

  .split-trigger-label {
    font-size: 0.55rem;
    letter-spacing: 1px;
    padding: 1.5px 7px;
    margin-top: 2px;
  }

  .mobile-app-shell { padding: 1.75rem 1.25rem; border-radius: 22px; }
  .welcome-title { font-size: 1.8rem; }
  .native-app-card { padding: 1rem; gap: 0.85rem; }
  .native-card-icon { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .split-panel-top {
    padding-bottom: 4.2rem;
  }
  
  .split-panel-bottom {
    padding-top: 4.2rem;
  }

  .split-badge {
    font-size: 0.68rem;
    padding: 0.3rem 1rem;
    letter-spacing: 1.5px;
  }

  .split-title {
    font-size: 1.55rem;
  }

  .split-subtext {
    font-size: 0.82rem;
  }

  .split-subtext-bottom {
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    padding: 0.4rem 1.1rem;
  }

  .split-logo-trigger {
    width: 108px;
    height: 108px;
    padding: 6px;
  }

  .split-logo-img {
    width: 60px;
    height: 60px;
  }

  .split-trigger-label {
    font-size: 0.5rem;
    padding: 1px 6px;
  }
}

/* Upgraded Compact Box Logout Button Component */
.btn-logout-action {
  width: auto;
  max-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  margin: 0 auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-logout-action:hover, 
.btn-logout-action:focus {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.btn-logout-action:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.btn-logout-action svg {
  transition: transform 0.25s ease, stroke 0.25s ease;
  flex-shrink: 0;
}

.btn-logout-action:hover svg {
  transform: translateX(2px);
  stroke: #ffffff;
}

@media (max-width: 768px) {
  .btn-logout-action {
    width: auto !important;
    max-width: 140px !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    margin: 0 auto !important;
  }
}

/* ============================================================
   LCU SECURITY OPERATIONS ADMIN PORTAL — EXPANDED STYLES
   ============================================================ */

/* Security Nav & Header Additions */
.admin-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.admin-badge-pulse::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-badge-alert {
  background-color: #ef4444 !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

/* Header Quick Actions */
.admin-header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-dark);
}

.btn-admin-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-admin-pill.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-admin-pill.primary:hover {
  background: #1e40af;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-admin-logout:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Expanded Admin KPI Deck */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.admin-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.admin-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.admin-kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.admin-kpi-icon {
  font-size: 1.25rem;
  opacity: 0.85;
}

.admin-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.admin-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Toolbar & Filter Bar */
.admin-toolbar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.admin-search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-dark);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-select {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.admin-select:focus {
  border-color: var(--primary);
}

/* Tab Navigation Indicator */
#main-nav a.active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

#main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* User & Student Directory Styles */
.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.badge-role-student {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-role-staff {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-role-admin {
  background: rgba(212, 175, 55, 0.15);
  color: #b48a1d;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-active-status.activated {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-active-status.unactivated {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Claims Inbox Cards & Layout */
.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.claim-inbox-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.claim-inbox-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.claim-inbox-card.pending {
  border-left: 4px solid #f59e0b;
}

.claim-inbox-card.accepted {
  border-left: 4px solid #10b981;
}

.claim-inbox-card.declined {
  border-left: 4px solid #ef4444;
}

.claim-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.claim-meta-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Campus Security Alert Cards */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.alert-item-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.alert-item-card.urgent {
  border-left: 5px solid #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.alert-item-card.warning {
  border-left: 5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.03);
}

.alert-item-card.info {
  border-left: 5px solid #2563eb;
  background: rgba(37, 99, 235, 0.03);
}

/* Handover Release Slip — Formal Printable Receipt */
.handover-slip-wrapper {
  background: #ffffff;
  color: #111827;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 2px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.handover-slip-header {
  text-align: center;
  border-bottom: 2px solid #1a56db;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.handover-slip-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: #1a56db;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.handover-slip-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

.handover-slip-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.handover-slip-meta-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.handover-slip-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.handover-slip-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #cbd5e1;
}

.signature-line {
  border-top: 1px solid #111827;
  padding-top: 0.4rem;
  font-size: 0.8rem;
  color: #4b5563;
  text-align: center;
}

@media print {
  body * {
    visibility: hidden;
  }
  .handover-slip-wrapper, .handover-slip-wrapper * {
    visibility: visible;
  }
  .handover-slip-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    border: none;
    box-shadow: none;
    padding: 2rem;
  }
  .no-print {
    display: none !important;
  }
}



