/* ===== MODERN VISITOR MANAGEMENT SYSTEM ===== */
/* Premium Design with Clear Text & Sharp UI */

:root {
  /* Modern Color Palette */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4895ef;
  --secondary: #7209b7;
  --accent: #f72585;
  --success: #4cc9f0;
  --warning: #f9c74f;
  --danger: #f94144;
  --dark: #2b2d42;
  --light: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Clear UI Effects */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
  --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);

  /* Clear Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;

  /* Smooth Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  animation: slideDown 0.4s ease;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

#username {
  font-weight: 600;
  color: var(--gray-800);
  background: var(--light);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

#logout-btn {
  background: var(--gradient-accent);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  color: white;
}

#logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== CARD STYLES ===== */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: 28px !important;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: var(--transition-normal);
  background: white;
  font-family: inherit;
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ===== BUTTON STYLES ===== */
button {
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active {
  transform: translateY(0);
}

.action-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-edit {
  background: var(--gradient-secondary);
}

.btn-delete {
  background: var(--gradient-accent);
}

.export-btn {
  background: var(--gradient-primary);
}

/* ===== BADGE STYLES ===== */
#badge {
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

#badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.badge-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.badge-header h3 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-content {
    margin-bottom: 20px;
    width: 100%;
}

.badge-details {
    width: 100%;
}

.badge-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--gray-200);
}

.badge-details p:last-child {
    border-bottom: none;
}

.badge-details strong {
    color: var(--primary);
    min-width: 110px;
    font-weight: 600;
}

.badge-footer {
    text-align: center;
    border-top: 2px solid var(--gray-300);
    padding-top: 16px;
    margin-top: 16px;
}

.host-signature-area {
    margin: 12px 0;
    padding: 16px;
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.host-signature-line {
    width: 65%;
    height: 2px;
    background: var(--gray-600);
    margin: 0 auto 6px auto;
}

.host-signature-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-top: 4px;
}

.visit-details {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 12px;
    line-height: 1.4;
}

.visit-details p {
    margin: 4px 0;
}

/* Print Styles for Badge */
@media print {
    #badge {
        border: 2px solid #000;
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }
    
    .host-signature-area {
        border: 2px dashed #666;
        background: #f9f9f9;
    }
}

/* ===== DASHBOARD STATS ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--gradient-primary);
  padding: 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: white;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.stat-card h3 {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.stat-card span {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  position: relative;
  z-index: 2;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px;
}

.tab-btn {
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-normal);
  border-radius: var(--radius-md);
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
}

.tab-btn.active {
  color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
}

.tab-content {
  margin-top: 20px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

/* ===== TABLE STYLES - CLEAR AND SHARP ===== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin: 20px 0;
  background: white;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-width: 1000px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  font-size: 0.9rem;
}

th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  font-size: 0.95rem;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(67, 97, 238, 0.03);
}

/* Specific fixes for admin table */
#admin-all-visits-table {
  width: 100%;
}

#admin-all-visits-table th,
#admin-all-visits-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
}

#admin-all-visits-table th {
  font-size: 0.92rem;
  padding: 14px;
}

/* ===== ADMIN STYLES ===== */
.admin-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 28px;
  width: 100%;
}

.sidebar {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  color: white;
  position: sticky;
  top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateX(6px);
}

.admin-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.admin-section {
  display: none;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.admin-section.active {
  display: block;
}

/* Specific fix for admin visits section */
#admin-visits {
  width: 100%;
  overflow: visible;
}

/* ===== FILTERS ===== */
.filter-options,
.report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  align-items: end;
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.9rem;
}

/* ===== DATE PICKER STYLES - CLEAR ===== */
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition-normal);
}

input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Fix for date placeholder */
input[type="date"]:invalid:not(:focus) {
  color: var(--gray-600);
}

input[type="date"]:valid {
  color: var(--dark);
}

/* Date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  margin-left: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ===== CAMERA STYLES ===== */
#camera-preview {
  width: 100%;
  max-width: 380px;
  margin: 12px 0;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#video {
  width: 100%;
  height: auto;
  background: var(--gray-900);
  display: block;
}

#photo-preview {
  width: 100%;
  max-width: 380px;
  margin: 12px 0;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#captured-photo {
  width: 100%;
  height: auto;
  display: block;
}

#capture-controls {
  margin: 16px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#capture-controls button {
  flex: 1;
  min-width: 120px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }

  100% {
    transform: rotate(45deg) translateX(200%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .admin-container {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .admin-content {
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .admin-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .admin-content {
    order: 1;
  }
}

@media (max-width: 900px) {
  table {
    min-width: 800px;
  }

  th,
  td {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 20px !important;
  }

  .badge-content {
    flex-direction: column;
    text-align: center;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    padding: 12px;
  }

  .filter-options,
  .report-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .table-container {
    border-radius: var(--radius-lg);
    margin: 16px 0;
  }

  th,
  td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  th {
    padding: 12px;
  }
}

.exit-options {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exit-option {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  flex: 1;
  min-width: 280px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .exit-options {
    flex-direction: column;
  }

  .exit-option {
    min-width: 100%;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 16px !important;
    margin-bottom: 12px;
  }

  .admin-content {
    padding: 16px !important;
  }

  button {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  #badge {
    padding: 20px !important;
  }

  .badge-header h3 {
    font-size: 1.5rem;
  }

  th,
  td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .form-section {
    padding: 16px !important;
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--gray-600);
  font-style: italic;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin: 20px 0;
  font-size: 1rem;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

/* User form specific styles */
#user-role:invalid {
  color: var(--gray-600);
}

#user-role option {
  color: var(--dark);
}

#user-role option[value=""] {
  color: var(--gray-600);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body * {
    visibility: hidden;
  }

  #badge,
  #badge * {
    visibility: visible;
  }

  #badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
  }

  .no-print {
    display: none !important;
  }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== CLEAR UI EFFECTS ===== */
.glass-effect {
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== TABLE SPECIFIC FIXES ===== */
.admin-section .table-container {
  width: 100%;
  display: block;
  overflow-x: auto;
}

#admin-visits .table-container {
  margin: 16px 0;
}

#admin-all-visits-table {
  width: 100%;
  table-layout: auto;
}

/* Responsive table fixes */
@media (max-width: 1200px) {
  #admin-all-visits-table th:nth-child(4),
  #admin-all-visits-table td:nth-child(4) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== MODERN LOGIN PAGE STYLES ===== */
.login-container {
  display: flex;
  width: 100%;
  min-height: 560px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.login-form {
  flex: 1;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo h2 {
  color: #333;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.login-form-title {
  display: block;
  font-size: 22px;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
  position: relative;
}

.login-form-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  margin: 12px auto;
  border-radius: 2px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.symbol-input {
  font-size: 16px;
  color: #999;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding-left: 12px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.input-field {
  width: 100%;
  padding: 16px 12px 16px 40px;
  border: none;
  border-bottom: 2px solid #d9d9d9;
  font-size: 15px;
  color: #333;
  background: transparent;
  outline: none;
  transition: all 0.3s;
}

.input-field:focus {
  border-color: #4361ee;
}

.input-field:focus+.focus-input {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.input-field:focus+.focus-input+.symbol-input {
  color: #4361ee;
}

.focus-input {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s;
}

.focus-input::before {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  transition: all 0.3s;
  transform: scaleX(0);
  transform-origin: left;
}

.input-field:focus+.focus-input::before {
  transform: scaleX(1);
}

.form-actions {
  margin-top: 32px;
}

.login-button {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  border: none;
  border-radius: 26px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.25);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(67, 97, 238, 0.35);
}

.login-button:active {
  transform: translateY(0);
}

.login-image {
  flex: 1;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.85) 0%, rgba(58, 12, 163, 0.85) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.image-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 32px;
  width: 100%;
}

.image-content img {
  background-color: antiquewhite;
  max-width: 280px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.image-content h2 {
  color: white;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.image-content p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

/* Responsive Design for Login */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    min-height: auto;
  }

  .login-form {
    padding: 32px 24px;
    order: 2;
  }

  .login-image {
    min-height: 240px;
    order: 1;
  }

  .image-content {
    padding: 0 20px;
  }

  .image-content img {
    max-width: 200px;
  }

  .image-content h2 {
    font-size: 22px;
  }

  .image-content p {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .login-form {
    padding: 24px 16px;
  }

  .login-form-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .input-field {
    padding: 14px 12px 14px 36px;
  }

  .login-button {
    height: 48px;
    font-size: 14px;
  }
}

/* Animation for login form */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  animation: fadeInUp 0.4s ease-out;
}

.login-image {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading animation for login button */
.login-button.loading {
  position: relative;
  color: transparent;
}

.login-button.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ===== VISITOR FORM STYLES ===== */
.visitor-form-container {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.visitor-form-content {
  flex: 1;
  background: white;
  padding: 32px;
  overflow-y: auto;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.form-logo h2 {
  color: #333;
  font-size: 26px;
  font-weight: 700;
}

.form-header p {
  color: #666;
  font-size: 15px;
}

.form-section {
    margin-bottom: 28px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: var(--radius-lg);
    border: 1px solid #e3e8ff;
}

.form-section h3 {
    color: #4361ee;
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-line {
    margin-bottom: 16px;
    width: 100%;
}

.form-line:last-child {
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e3e8ff;
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.input-group {
  flex: 1;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 13px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: #666;
    z-index: 2;
    font-size: 15px;
}
.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #e3e8ff;
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  outline: none;
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Gadgets section specific styling */
.gadgets-section {
    width: 100%;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-btn {
  padding: 12px 16px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

.otp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

/* Chips Container */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 36px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 1px dashed #dee2e6;
}

.gadget-chip {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.2s ease;
}

.gadget-chip .remove {
    cursor: pointer;
    font-weight: bold;
    padding: 1px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: all 0.2s ease;
}
.gadget-chip .remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Select dropdown styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* Focus states */
.form-input:focus + i {
    color: #4361ee;
}

/* Buttons */
.action-btn {
  padding: 10px 16px;
  background: #e3e8ff;
  color: #4361ee;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.action-btn:hover {
  background: #4361ee;
  color: white;
}

.action-btn.primary {
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
}

.action-btn.small {
  padding: 6px 12px;
  font-size: 11px;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}

/* ===== PAGINATION STYLES ===== */
.pagination-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 10px;
    background-color: white;
    color: #4361ee;
    border: 1px solid #e3e8ff;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    min-width: 36px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: #f0f2ff;
    border-color: #4361ee;
}

.pagination-btn.active {
    background-color: #4361ee;
    color: white;
    font-weight: 600;
    border-color: #4361ee;
}

.pagination-dots {
    padding: 0 4px;
    color: #666;
    font-size: 14px;
}

.pagination-info {
    margin-left: 12px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Fix for hidden required fields validation */
#purpose-other-container.hidden #purpose-other {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* When visible */
#purpose-other-container:not(.hidden) #purpose-other {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    left: auto !important;
}

/* ===== HOST SEARCH DROPDOWN STYLES ===== */
#host-container {
    position: relative;
    width: 100%;
}

#host-search {
    width: 100%;
    padding: 12px 12px 12px 36px;
    font-size: 14px;
    border: 2px solid #e3e8ff;
    border-radius: var(--radius-lg);
    background-color: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#host-search:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

#host-search::placeholder {
    color: #999;
}

.host-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e3e8ff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    font-size: 13px;
}

.dropdown-item:hover {
    background-color: #f8faff;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    color: #333;
}

.dropdown-item small {
    color: #666;
    font-size: 11px;
}

.dropdown-item[data-new="true"] {
    background-color: #f0f9f0;
    color: #28a745;
}

.dropdown-item[data-new="true"]:hover {
    background-color: #e8f5e8;
}

.dropdown-item[data-new="true"] strong {
    color: #28a745;
}

/* Input with icon positioning */
#host-container .input-with-icon {
    position: relative;
    width: 100%;
}

#host-container .input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
    font-size: 14px;
}

/* ===== TEXT CLARITY FIXES ===== */
/* Force clear text rendering */
.admin-content,
.card,
table,
button,
input,
select,
.pagination-btn,
.action-btn {
    text-shadow: 0 0 0.5px rgba(0,0,0,0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove any blur effects */
.card,
.sidebar,
.admin-content,
.table-container,
.filter-options {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Ensure sharp borders */
table,
th,
td {
    border-collapse: separate;
    border-spacing: 0;
}

/* Crisp shadows */
.card,
.table-container,
.sidebar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Sharp input borders */
input,
select,
textarea {
    border: 1px solid #d1d5db;
}

/* Clear date picker */
input[type="date"] {
    background: white;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
}

/* Force date picker to show properly */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
    color: #374151;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #374151;
    padding: 0 2px;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #374151;
}

/* High DPI display fixes */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    table {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --gray-200: #2d2d2d;
        --gray-800: #e5e5e5;
    }
    
    .card,
    .admin-content,
    .table-container {
        background: #1e1e1e;
        color: #e5e5e5;
        border-color: #2d2d2d;
    }
    
    table {
        background: #1e1e1e;
    }
    
    th,
    td {
        color: #e5e5e5;
        border-color: #2d2d2d;
    }
    
    input,
    select,
    textarea {
        background: #2d2d2d;
        color: #e5e5e5;
        border-color: #3d3d3d;
    }
}

/* Print optimization */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* ===== MARK EXIT SECTION - MODERN DESIGN ===== */

/* Section Header */
#admin-exit .section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
}

#admin-exit .section-header h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

#admin-exit .section-header p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Exit Tabs - Modern Design */
.exit-tabs {
    display: flex;
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    gap: 8px;
}

.exit-tab-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray-600);
}

.exit-tab-btn:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary);
}

.exit-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

.exit-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.exit-tab-content.active {
    display: block;
}

/* Tab Header */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.tab-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
}

.btn-refresh {
    padding: 10px 20px;
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Visitors Count */
.visitors-count {
    background: linear-gradient(135deg, #e3e8ff 0%, #f0f2ff 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

/* Visitors Container */
.visitors-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 20px;
    margin-bottom: 25px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Visitor Card */
.visitor-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visitor-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.visitor-info {
    flex: 1;
}

.visitor-info h4 {
    margin: 0 0 6px 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
}

.visitor-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--gray-600);
}

.visitor-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.visitor-details i {
    color: var(--primary);
    font-size: 12px;
}

.btn-mark-exit {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-mark-exit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.25);
}

/* Tab Footer */
.tab-footer {
    margin-top: 25px;
    padding: 18px;
    background: #f8f9ff;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.tab-footer p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.5;
}

.tab-footer strong {
    color: var(--primary);
}

/* Search Options Layout */
.search-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.search-section, .qr-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.search-section h4, .qr-section h4 {
    margin: 0 0 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
}

/* Search Input Groups */
.search-input-group, .qr-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input, .qr-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input-group input:focus, .qr-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Buttons */
.btn-search, .btn-scan {
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover, .btn-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.25);
}

/* Search Results */
.search-results {
    margin-top: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray-600);
    font-style: italic;
    background: var(--light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--gray-300);
}

/* QR Help */
.qr-help {
    margin-top: 20px;
    padding: 15px;
    background: #fff9e6;
    border: 1px solid #ffecb3;
    border-radius: var(--radius-md);
}

.qr-help small {
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
}

/* No Active Visitors */
.no-active-visitors {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.no-active-visitors i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 15px;
    display: block;
}

.no-active-visitors h4 {
    margin: 0 0 10px 0;
    color: var(--gray-600);
    font-size: 18px;
    font-weight: 600;
}

.no-active-visitors p {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--gray-600);
    font-size: 16px;
}

.loading:after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(67, 97, 238, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .exit-tabs {
        flex-direction: column;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .visitor-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .visitor-details {
        flex-wrap: wrap;
    }
    
    .btn-mark-exit {
        width: 100%;
        justify-content: center;
    }
    
    .search-input-group, .qr-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .search-section, .qr-section {
        padding: 20px;
    }
    
    .visitors-count {
        font-size: 16px;
        padding: 15px;
    }
    
    .visitor-card {
        padding: 15px;
    }
}

/* Dashboard Exit Section (Gate Dashboard) */
#dashboard-section .exit-actions {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

#dashboard-section .exit-actions h3 {
    margin: 0 0 20px 0;
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

#dashboard-section .exit-options {
    margin-bottom: 20px;
}

#dashboard-section .exit-option label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
}

#security-exit-results {
    margin-top: 20px;
}

/* Animation for visitor cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visitor-card {
    animation: slideIn 0.3s ease forwards;
}

/* Success/Error Messages */
.exit-success, .exit-error {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.exit-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.exit-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* css/style.css में add करें */
.host-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 10px 20px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #3a56d4;
}

.action-btn i {
    font-size: 16px;
}

#import-hosts-btn {
    background-color: #28a745;
}

#import-hosts-btn:hover {
    background-color: #218838;
}