/* Professional styling for visitor management system */

/* Header styling */
header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Card styling */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Form styling */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Toast notification styling */
.toast {
  border-radius: 8px;
  overflow: hidden;
}

/* Footer styling */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Icon styling */
.bi {
  vertical-align: -0.125em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header img {
    width: 40px;
    height: 40px;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Loading spinner */
.spinner-border {
  width: 1rem;
  height: 1rem;
}

/* Form validation styling */
.was-validated .form-control:invalid, 
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


/* Dashboard specific styling */

/* Welcome section styling */
.welcome-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Card styling */
.dashboard-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Status badge styling */
.status-badge {
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 50px;
}

/* Timeline styling */
.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px solid #0d6efd;
  color: #0d6efd;
}

/* Information card styling */
.info-card {
  border-radius: 8px;
  overflow: hidden;
}

.info-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-section {
    padding: 1rem;
  }
  
  .dashboard-card {
    margin-bottom: 1rem;
  }
  
  .timeline-item {
    padding-left: 20px;
  }
  
  .timeline-icon {
    width: 16px;
    height: 16px;
    left: 0;
  }
}

/* Loading spinner */
.spinner-border {
  width: 1rem;
  height: 1rem;
}

/* Status icon animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.status-icon {
  animation: pulse 2s infinite;
}


/* Sidebar styling */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  width: 180px;
  min-width: 140px;
  max-width: 220px;
}

.sidebar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, .1);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, .2);
}

.sidebar .nav-link i {
  font-size: 1.1rem;
}

.sidebar-link-hover:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Main content styling */
main {
  padding-top: 56px;
}

/* Card styling */
.dashboard-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Table styling */
.table th {
  border-top: none;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Tab styling */
.nav-tabs .nav-link {
  color: #495057;
}

.nav-tabs .nav-link.active {
  font-weight: 600;
  color: #0d6efd;
}

/* Chart container styling */
#visitorChart {
  max-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .sidebar {
    position: static;
    height: auto;
    padding-top: 0;
  }
  
  .dropdown {
    position: static !important;
  }
  
  main {
    padding-top: 0;
  }
}

/* Form styling in settings */
.form-switch {
  padding-left: 3rem;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  margin-left: -3rem;
}

/* Toast notification styling */
.toast {
  border-radius: 8px;
  overflow: hidden;
}

/* Photo capture styling */
#video, #canvas {
  max-width: 100%;
  height: auto;
}

#photoPlaceholder {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
}

/* Visitor photo styling */
.visitor-photo {
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  width: 60px;
  height: 75px;
  background: #f8f9fa;
}

/* Badge print styling */
@media print {
  body * {
    visibility: hidden;
  }
  .badge-print, .badge-print * {
    visibility: visible;
  }
  .badge-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}