/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  background-color: #f1f5f9;
  border-bottom: 1px solid #e3e8ef;
  font-weight: 600;
}

/* Dashboard Stats */
.stats-card {
  transition: transform 0.3s;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-icon {
  font-size: 2rem;
  color: #4a6cf7;
}

/* ID Card Styles */
.id-card {
  width: 320px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.id-card-header {
  background-color: #4a6cf7;
  color: white;
  padding: 15px;
  text-align: center;
}

.id-card-body {
  padding: 20px;
  text-align: center;
}

.id-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid #4a6cf7;
}

.id-card-qr {
  width: 150px;
  height: 150px;
  margin: 15px auto;
}

.id-card-footer {
  background-color: #f1f5f9;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
}

/* Student ID Card */
.student-id-card {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.student-id-card .id-card-header {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Staff ID Card */
.staff-id-card {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.staff-id-card .id-card-header {
  background-color: rgba(255, 255, 255, 0.1);
}

/* QR Scanner */
.scanner-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#scanner-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Attendance Table */
.attendance-table th,
.attendance-table td {
  vertical-align: middle;
}

.attendance-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-present {
  background-color: #10b981;
}

.status-absent {
  background-color: #ef4444;
}

.status-late {
  background-color: #f59e0b;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .card {
    margin-bottom: 15px;
  }

  .id-card {
    width: 280px;
    height: 440px;
  }

  .id-card-photo {
    width: 100px;
    height: 100px;
  }

  .id-card-qr {
    width: 120px;
    height: 120px;
  }

  .table-responsive {
    font-size: 0.9rem;
  }
}
