/* HallIO Custom Design System */
:root {
  --hallio-primary: #5269D8;
  --hallio-primary-hover: #4155b5;
  --hallio-mint: #22A68A;
  --hallio-mint-hover: #1c8871;
  --hallio-amber: #F0B44C;
  --hallio-coral: #EA7178;
  --hallio-bg: #F3F6FB;
  --hallio-card-bg: #FFFFFF;
  --hallio-text-dark: #273657;
  --hallio-text-muted: #6c7a9c;
  --hallio-border: #E2E8F0;
  --hallio-radius: 14px;
  --hallio-radius-sm: 8px;
  --hallio-radius-lg: 20px;
  --hallio-shadow: 0 4px 16px rgba(39, 54, 87, 0.06);
  --hallio-shadow-hover: 0 8px 24px rgba(82, 105, 216, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--hallio-bg);
  color: var(--hallio-text-dark);
  min-height: 100vh;
}

/* Common Brand & Typography */
.brand-name {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--hallio-primary);
}
.brand-text {
  color: var(--hallio-text-dark);
}

/* Card Styling */
.card-hallio {
  background: var(--hallio-card-bg);
  border: 1px solid var(--hallio-border);
  border-radius: var(--hallio-radius);
  box-shadow: var(--hallio-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Admin Sidebar Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid var(--hallio-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-sidebar .nav-link {
  color: var(--hallio-text-dark);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--hallio-radius-sm);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s ease;
}

.admin-sidebar .nav-link:hover {
  background-color: #F0F4FE;
  color: var(--hallio-primary);
}

.admin-sidebar .nav-link.active {
  background-color: var(--hallio-primary);
  color: #FFFFFF;
}

.admin-main {
  flex-grow: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Stat Widgets */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--hallio-radius);
  border: 1px solid var(--hallio-border);
  background: #FFFFFF;
  box-shadow: var(--hallio-shadow);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-card .stat-val {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Custom Status Badges */
.badge-status {
  padding: 0.4em 0.75em;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.badge-status-active {
  background-color: #E6F7F3;
  color: #127962;
  border: 1px solid #B0E7DA;
}
.badge-status-completed {
  background-color: #EEF2F6;
  color: #4A5568;
  border: 1px solid #D2D6DC;
}
.badge-status-overdue {
  background-color: #FDF0ED;
  color: #C0392B;
  border: 1px solid #F5C6CB;
  animation: pulse-overdue 2s infinite;
}
.badge-status-voided {
  background-color: #F8F9FA;
  color: #A0AEC0;
  border: 1px dashed #CBD5E0;
}

@keyframes pulse-overdue {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

/* Kiosk Specific Styling */
.kiosk-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #F3F6FB 0%, #E9EFF8 100%);
}

.kiosk-header {
  padding: 1.25rem 2rem;
  background: #FFFFFF;
  border-bottom: 2px solid var(--hallio-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-room-badge {
  background: #F0F4FE;
  color: var(--hallio-primary);
  border: 1px solid #D2DCF9;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
}

.kiosk-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Kiosk Autocomplete Input */
.kiosk-search-input {
  height: 70px;
  font-size: 1.5rem;
  border-radius: 18px;
  border: 2px solid #CBD5E1;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-shadow: 0 6px 18px rgba(39, 54, 87, 0.05);
  transition: all 0.2s ease;
}
.kiosk-search-input:focus {
  border-color: var(--hallio-primary);
  box-shadow: 0 0 0 5px rgba(82, 105, 216, 0.2);
  outline: none;
}

/* Kiosk Student Results List */
.student-results-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.student-card-btn {
  background: #FFFFFF;
  border: 2px solid var(--hallio-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.student-card-btn:hover, .student-card-btn:focus {
  border-color: var(--hallio-primary);
  background-color: #F8FAFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(82, 105, 216, 0.15);
}

.student-name-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hallio-text-dark);
}
.student-sub-text {
  font-size: 1rem;
  color: var(--hallio-text-muted);
}

/* Destination Buttons Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.destination-btn {
  background: #FFFFFF;
  border: 2px solid var(--hallio-border);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 130px;
}
.destination-btn:hover {
  border-color: var(--hallio-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(82, 105, 216, 0.15);
}
.destination-btn.selected {
  border-color: var(--hallio-primary);
  background-color: #F0F4FE;
  box-shadow: 0 0 0 3px rgba(82, 105, 216, 0.3);
}
.destination-icon {
  font-size: 2.25rem;
  color: var(--hallio-primary);
}
.destination-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hallio-text-dark);
}

/* Giant "I'm Back" Button */
.btn-im-back {
  background-color: var(--hallio-mint);
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 800;
  padding: 1.75rem 2.5rem;
  border-radius: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(34, 166, 138, 0.35);
  transition: all 0.2s ease;
}
.btn-im-back:hover, .btn-im-back:focus {
  background-color: var(--hallio-mint-hover);
  color: #FFFFFF;
  transform: scale(1.02);
  box-shadow: 0 14px 36px rgba(34, 166, 138, 0.45);
}

/* Giant Sign-Out Button */
.btn-sign-out {
  background-color: var(--hallio-primary);
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  font-weight: 800;
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(82, 105, 216, 0.35);
  transition: all 0.2s ease;
}
.btn-sign-out:hover, .btn-sign-out:focus {
  background-color: var(--hallio-primary-hover);
  color: #FFFFFF;
  transform: scale(1.02);
}

/* Confirmation Card */
.confirmation-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 2px solid var(--hallio-border);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 12px 36px rgba(39, 54, 87, 0.08);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inactivity Auto-Reset Bar */
.kiosk-reset-bar {
  height: 6px;
  background-color: var(--hallio-border);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}
.kiosk-reset-fill {
  height: 100%;
  background-color: var(--hallio-primary);
  width: 100%;
  transition: width linear;
}
