/* Hide OK button on error modal when auto-hide class is present */
.auto-hide-ok {
  display: none !important;
}
/* ===============================================
   ABSENSI RFID STYLES - MODERN & RESPONSIVE
   =============================================== */

/* Static Page - No Scroll */
html, body {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Disable scrolling on all elements */
* {
  -webkit-overflow-scrolling: touch;
}

body {
  touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection only on specific elements */
.module-absensi-table,
.current-date,
.current-time,
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Footer positioning for absensi page */
.footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  height: 50px !important;
  background: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Fullscreen Controls */
.fullscreen-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn i {
  font-size: 1.2rem;
  color: #333;
  transition: all 0.3s ease;
}

.fullscreen-btn:hover i {
  color: #667eea;
}

/* Absensi Container */
.module-absensi-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
}

/* ===============================================
   ABSENSI HEADER SECTION
   =============================================== */
.module-absensi-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  height: 160px;
  display: flex;
  align-items: center;
  z-index: 100;
  position: relative;
}

.module-absensi-header-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
  position: relative;
  background: linear-gradient(
    90deg,
    #2c3e50 0%,
    #34495e 20%,
    #5dade2 40%,
    #85c1e9 50%,
    #5dade2 60%,
    #34495e 80%,
    #2c3e50 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===============================================
   ABSENSI CONTENT SECTION
   =============================================== */
.module-absensi-content {
  flex: 1;
  padding: 15px 0 60px 0;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  height: calc(100vh - 160px);
}

/* ===============================================
   RFID SCANNER CARD
   =============================================== */
.module-absensi-scanner-card .card-header {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-absensi-scanner-title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.module-absensi-scanner-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rfid-scanner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.rfid-scanner {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.scanner-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
}

.scanner-wave {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: scanner-pulse 2s infinite;
}

.scanner-wave:nth-child(1) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-delay: 0s;
}

.scanner-wave:nth-child(2) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  animation-delay: 0.4s;
}

.scanner-wave:nth-child(3) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  animation-delay: 0.8s;
}

@keyframes scanner-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.scanner-icon {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 12px;
  z-index: 10;
  position: relative;
  animation: icon-glow 2s ease-in-out infinite alternate;
}

@keyframes icon-glow {
  0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.scanner-text {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 10;
  position: relative;
}

.scanner-instruction {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  z-index: 10;
  position: relative;
  margin-top: 5px;
}

/* Status Indicator */
.absensi-status {
  text-align: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  border-radius: 25px;
  font-weight: 500;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Hidden RFID Input */
.rfid-hidden-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* ===============================================
   DATETIME CARD
   =============================================== */
.module-absensi-datetime-card .card-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
}

.module-absensi-datetime-title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.current-datetime {
  text-align: center;
  padding: 20px;
}

.current-date {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.current-time {
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 5px;
  font-family: 'Courier New', monospace;
}

.current-day {
  font-size: 1rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Datetime Compact Styles */
.datetime-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.datetime-left {
  text-align: left;
}

.datetime-right {
  text-align: right;
}

.datetime-compact .current-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}

.datetime-compact .current-time {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  font-family: 'Courier New', monospace;
}

.datetime-compact .current-day {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* ===============================================
   LIVE CAMERA CARD
   =============================================== */
.module-absensi-camera-card .card-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  height: 40px;
}

.module-absensi-camera-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.camera-controls {
  display: flex;
  gap: 5px;
}

.camera-controls .btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.module-absensi-camera-card .card-body {
  padding: 10px;
}

.camera-container {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.camera-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.camera-placeholder:hover {
  background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

.camera-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.camera-placeholder span {
  font-size: 1rem;
  text-align: center;
  opacity: 0.9;
  font-weight: 500;
}

.camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.camera-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.camera-active .camera-overlay {
  display: block;
}

.camera-active .camera-frame {
  animation: camera-focus 2s ease-in-out infinite;
}

@keyframes camera-focus {
  0%, 100% { 
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% { 
    border-color: rgba(76, 175, 80, 0.9);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
  }
}

/* Camera Flash Effect */
.capture-flash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  animation: flash 0.2s ease-out;
  pointer-events: none;
}

@keyframes flash {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===============================================
   QUICK STATS CARD (COMPACT)
   =============================================== */
.module-absensi-quickstats-card .card-header {
  background: linear-gradient(135deg, #ffa726, #ff9800);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 35px;
  height: 35px;
}

.module-absensi-quickstats-title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.module-absensi-quickstats-card .card-body {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  height: 60px;
}

.quick-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  align-items: center;
}

.quick-stats.compact {
  gap: 5px;
}

.stat-item {
  text-align: center;
  padding: 5px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #212529;
  margin-bottom: 5px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(255,255,255,0.15);
}


.stat-label {
  font-size: 0.85rem;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,255,255,0.15);
}

/* ===============================================
   COMBINED STATS CARD
   =============================================== */
.module-absensi-combined-stats .card-header {
  background: linear-gradient(135deg, #26c6da, #00acc1);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  padding: 8px 15px;
  min-height: 35px;
  height: 35px;
}

.module-absensi-combined-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.module-absensi-combined-body {
  padding: 10px;
  min-height: 80px;
  height: 80px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
}

.mini-stats {
  display: flex;
  gap: 8px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
}

.mini-stat i {
  font-size: 0.7rem;
}

.percentage-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.percentage-compact {
  text-align: center;
}

.percentage-compact .percentage-number {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.percentage-compact .percentage-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===============================================
   HISTORY CARD
   =============================================== */
.module-absensi-history-card .card-header {
  background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-absensi-history-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.module-absensi-table {
  margin: 0;
}

.module-absensi-history-card .card-body {
  height: 380px;
  max-height: 600px;
  overflow: hidden;
  padding: 10px;
}

.module-absensi-charts-card .card-body {
  height: 110px;
  overflow: hidden;
  padding: 10px;
}

/* Prevent any scrolling on specific elements */
.glass-card {
  overflow: hidden;
}

.rfid-scanner-container {
  overflow: hidden;
}

/* Ensure table scrolls within its container only */
.table-responsive {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Month Stats Card */
.module-absensi-monthstats-card .card-header {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 0 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  height: 48px;
}

.module-absensi-monthstats-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.module-absensi-monthstats-card .card-body {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  height: 90px;
}


.module-absensi-monthstats-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #212529;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(255,255,255,0.15);
}

.module-absensi-monthstats-card .quick-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  align-items: center;
}

.module-absensi-monthstats-card .stat-item {
  text-align: center;
  padding: 5px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.module-absensi-monthstats-card .stat-label {
  font-size: 0.85rem;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15);
}

/* Percentage Card */
.module-absensi-percentage-card .card-header {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 0 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  height: 48px;
}

.module-absensi-percentage-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.module-absensi-percentage-card .card-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  height: 130px;
}

.percentage-item {
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.percentage-number {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.percentage-number.hadir {
  color: #05ff3f;
}

.percentage-number.tidak-hadir {
  color: #ff0019;
}


.percentage-label {
  font-size: 0.9rem;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,0.1);
}

/* Compact Summary Cards */
.summary-card-compact {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.summary-card-compact.hadir {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-color: #28a745;
}

.summary-card-compact.tidak-hadir {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-color: #dc3545;
}

.summary-icon-small {
  font-size: 1rem;
}

.summary-content {
  text-align: left;
}

.summary-number-small {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.summary-title-small {
  font-size: 0.7rem;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Compact Progress Bar */
.attendance-progress-compact {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.progress-label-small {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 3px;
}

.progress-sm {
  height: 8px;
  border-radius: 4px;
}

.progress-text-small {
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Small stat numbers for monthly stats */
.stat-number.small {
  font-size: 1.5rem;
}

/* Fixed Table for 10 rows */
.table-fixed {
  height: 100%;
  overflow: hidden;
}

.table-fixed table {
  table-layout: fixed;
  margin-bottom: 0;
  height: 100%;
}

.table-fixed thead {
  height: 40px;
}

.table-fixed tbody {
  height: calc(100% - 40px);
  overflow-y: auto;
  overflow-x: hidden;
}

.table-fixed tbody tr {
  height: 35px;
}

.table-fixed tbody tr:empty,
.table-fixed tbody tr td:empty {
  border: none;
  background: transparent;
}

.table-fixed tbody td {
  vertical-align: middle;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Loading & Error Message Styling */
.table-loading-message,
.table-error-message {
  text-align: center !important;
  font-style: italic;
  padding: 40px 20px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  height: 280px !important;
  font-size: 0.95rem;
  vertical-align: middle !important;
  border: none !important;
  width: 100% !important;
  position: relative;
}

.table-loading-message {
  color: #6c757d !important;
}

.table-error-message {
  color: #dc3545 !important;
}

.table-loading-message i,
.table-error-message i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.7;
  display: block;
}

.table-loading-message div,
.table-error-message div {
  font-weight: 500;
  text-align: center;
  margin: 0 auto;
}

/* Memastikan parent td juga terpusat */
.module-absensi-table td:has(.table-loading-message),
.module-absensi-table td:has(.table-error-message) {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 !important;
}

/* Fallback untuk browser yang tidak support :has() */
.module-absensi-table tbody tr td[colspan="6"] {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0 !important;
}

.module-absensi-table th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 6px;
  vertical-align: middle;
  line-height: 1.2;
}

.module-absensi-table td {
  vertical-align: middle;
  padding: 12px 8px;
}

.module-absensi-table tbody tr:hover {
  background-color: #f1f3f4;
}

/* ===============================================
   CHARTS CARD
   =============================================== */
.module-absensi-charts-card .card-header {
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0 !important;
}

.module-absensi-charts-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.summary-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.summary-card.hadir {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-color: #28a745;
}

.summary-card.tidak-hadir {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-color: #dc3545;
}

.summary-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.summary-title {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
}

.summary-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 5px;
}

.summary-percentage {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
}

/* Progress Bar */
.attendance-progress {
  margin-top: 20px;
}

.progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
  text-align: center;
}

.progress {
  height: 20px;
  border-radius: 10px;
  background-color: #e9ecef;
  margin-bottom: 10px;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

/* ===============================================
   ALERTS
   =============================================== */
.module-absensi-alerts .alert {
  border-radius: 15px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===============================================
   MODALS
   =============================================== */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 20px 30px;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 20px 30px;
}

.success-icon, .error-icon {
  animation: modal-icon-bounce 0.6s ease-out;
}

@keyframes modal-icon-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Static Layout Controls */
.module-absensi-content .container-fluid {
  height: 100%;
  padding: 0 15px;
}

.module-absensi-content .row {
  height: 100%;
  margin: 0;
}

.module-absensi-content .col-12,
.module-absensi-content .col-lg-5,
.module-absensi-content .col-xl-4,
.module-absensi-content .col-lg-7,
.module-absensi-content .col-xl-8 {
  height: 100%;
  padding: 0 8px;
}

/* Left column layout */
.module-absensi-content .col-lg-5,
.module-absensi-content .col-xl-4 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Right column layout */
.module-absensi-content .col-lg-7,
.module-absensi-content .col-xl-8 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cards height management */
.module-absensi-scanner-card {
  flex-shrink: 0;
  height: 380px;
  max-height: 380px;
  min-height: 380px;
}

.module-absensi-camera-card {
  flex-shrink: 0;
  height: 420px;
  max-height: 420px;
}

.module-absensi-quickstats-card {
  flex-shrink: 0;
  height: 105px;
}

.module-absensi-combined-stats {
  flex-shrink: 0;
  height: 125px;
}

.module-absensi-history-card {
  flex: 1;
  min-height: 400px;
}

.module-absensi-charts-card {
  flex-shrink: 0;
  height: 150px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Fullscreen responsive */
@media (max-width: 768px) {
  .fullscreen-controls {
    top: 10px;
    right: 10px;
  }
  
  .fullscreen-btn {
    width: 40px;
    height: 40px;
  }
  
  .fullscreen-btn i {
    font-size: 1rem;
  }
  
  .module-absensi-header {
    height: 120px;
    padding: 8px 0;
  }
  
  .module-absensi-content {
    height: calc(100vh - 120px);
  }
  
  .module-absensi-content .col-12 {
    height: auto;
    margin-bottom: 8px;
  }
  
  .module-absensi-scanner-card {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
  }
  
  .module-absensi-camera-card {
    height: 280px;
    max-height: 280px;
  }
  
  .camera-container {
    height: 230px;
  }
  
  .module-absensi-quickstats-card {
    height: 100px;
  }
  
  .module-absensi-monthstats-card {
    height: 80px;
  }
  
  .module-absensi-history-card {
    min-height: 280px;
  }
  
  .module-absensi-history-card .card-body {
    height: 240px;
    max-height: 240px;
  }
  
  .table-loading-message,
  .table-error-message {
    height: 220px;
  }
  
  .module-absensi-charts-card {
    height: 120px;
  }
  
  .module-absensi-charts-card .card-body {
    height: 80px;
  }
}

@media (max-width: 576px) {
  .fullscreen-controls {
    top: 5px;
    right: 5px;
  }
  
  .fullscreen-btn {
    width: 35px;
    height: 35px;
  }
  
  .fullscreen-btn i {
    font-size: 0.9rem;
  }
  
  .module-absensi-header {
    height: 100px;
    padding: 5px 0;
  }
  
  .module-absensi-content {
    height: calc(100vh - 100px);
    padding: 10px 0;
  }
  
  .module-absensi-scanner-card {
    min-height: 180px;
    max-height: 200px;
  }
  
  .module-absensi-camera-card {
    height: 240px;
    max-height: 240px;
  }
  
  .camera-container {
    height: 190px;
  }
  
  .module-absensi-quickstats-card {
    height: 100px;
  }
  
  .module-absensi-history-card {
    min-height: 220px;
  }
  
  .module-absensi-history-card .card-body {
    height: 180px;
    max-height: 180px;
  }
  
  .table-loading-message,
  .table-error-message {
    height: 160px;
    font-size: 0.85rem;
  }
  
  .table-loading-message i,
  .table-error-message i {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .module-absensi-charts-card {
    height: 160px;
  }
}
@media (max-width: 768px) {
  .module-absensi-header-text {
    font-size: 1.2rem;
  }
  
  .summary-card {
    height: 160px;
    min-height: 160px;
    padding: 20px 15px;
  }
  
  .summary-number {
    font-size: 2rem;
  }
  
  .summary-icon {
    font-size: 1.8rem;
  }
  
  .rfid-scanner {
    width: 180px;
    height: 180px;
  }
  
  .scanner-icon {
    font-size: 2.5rem;
  }
  
  .current-time {
    font-size: 1.5rem;
  }
  
  .current-date {
    font-size: 1.2rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .summary-number {
    font-size: 2rem;
  }
  
  .quick-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .stat-item {
    padding: 5px;
  }
  
  .datetime-compact {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 15px;
  }
  
  .datetime-left,
  .datetime-right {
    text-align: center;
  }
  
  .datetime-compact .current-time {
    font-size: 1.4rem;
  }
  
  .datetime-compact .current-date {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .module-absensi-content {
    padding: 10px 0;
  }
  
  .summary-card {
    height: 140px;
    min-height: 140px;
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  
  .summary-number {
    font-size: 1.8rem;
  }
  
  .summary-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .summary-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .summary-percentage {
    font-size: 1rem;
  }
  
  .module-absensi-header {
    padding: 10px 0;
  }
  
  .module-absensi-header-text {
    font-size: 1rem;
  }
  
  .rfid-scanner {
    width: 140px;
    height: 140px;
  }
  
  .scanner-icon {
    font-size: 2rem;
  }
  
  .current-time {
    font-size: 1.2rem;
  }
  
  .summary-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* ===============================================
   ANIMATION EFFECTS
   =============================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Scanning Effect */
.scanning .rfid-scanner {
  animation: scanner-active 1s ease-in-out;
}

@keyframes scanner-active {
  0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4); }
  100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
}

.scanning .scanner-icon {
  animation: scanner-icon-active 1s ease-in-out;
}

@keyframes scanner-icon-active {
  0% { color: white; }
  50% { color: #4CAF50; }
  100% { color: white; }
}

/* Success Effect */
.success .rfid-scanner {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  animation: success-pulse 0.6s ease-out;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Error Effect */
.error .rfid-scanner {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  animation: error-shake 0.6s ease-out;
}

@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Error Effect for Modal */
.error-effect .rfid-scanner {
  animation: error-shake-modal 2s ease-in-out;
}

@keyframes error-shake-modal {
  0%, 100% { 
    transform: translateX(0) scale(1); 
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
  }
  10%, 30%, 50%, 70%, 90% { 
    transform: translateX(-5px) scale(1.02); 
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.6);
  }
  20%, 40%, 60%, 80% { 
    transform: translateX(5px) scale(1.02); 
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.6);
  }
  25%, 75% {
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.8);
  }
}

/* ===============================================
   IMPROVED SUCCESS MODAL
   =============================================== */
.success-modal-content {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: none;
}

.success-modal-content .modal-header {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-bottom: none;
  padding: 25px 30px;
  border-radius: 25px 25px 0 0;
}

.success-modal-content .modal-body {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.user-photo-container {
  position: relative;
  display: inline-block;
}

.user-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #28a745;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
  object-fit: cover;
  animation: photo-bounce 0.6s ease-out;
}

@keyframes photo-bounce {
  0% { transform: scale(0) rotate(180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.user-info {
  margin-top: 20px;
}

.user-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  animation: slide-in-up 0.6s ease-out 0.2s both;
}

.user-details {
  margin-bottom: 20px;
  animation: slide-in-up 0.6s ease-out 0.4s both;
}

.user-details p {
  margin: 8px 0;
  font-size: 1rem;
  color: #495057;
}

.user-details span {
  font-weight: 600;
  color: #28a745;
}

.waktu-absen {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  animation: slide-in-up 0.6s ease-out 0.6s both;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.waktu-label {
  opacity: 0.9;
  margin-right: 10px;
}

.waktu-value {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
}

@keyframes slide-in-up {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===============================================
   CARD TAP ANIMATION EFFECTS
   =============================================== */
.card-tapped {
  animation: card-tap-effect 0.8s ease-out;
  position: relative;
}

@keyframes card-tap-effect {
  0% {
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  30% {
    transform: scale(0.95);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
  }
  60% {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.3);
  }
}

.scanning-effect {
  position: relative;
}

.scanning-effect::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(76, 175, 80, 0.3), 
    transparent, 
    rgba(76, 175, 80, 0.3)
  );
  border-radius: 50%;
  animation: scanning-pulse 1.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes scanning-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.tap-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  z-index: 10;
}

.tap-ripple.animate {
  animation: ripple-expand 1.2s ease-out;
}

@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

.scanner-glow {
  box-shadow: 
    0 20px 40px rgba(76, 175, 80, 0.4),
    0 0 0 2px rgba(76, 175, 80, 0.3),
    0 0 0 4px rgba(76, 175, 80, 0.2),
    0 0 0 6px rgba(76, 175, 80, 0.1) !important;
  animation: scanner-glow-pulse 2s ease-in-out;
}

@keyframes scanner-glow-pulse {
  0%, 100% {
    box-shadow: 
      0 20px 40px rgba(76, 175, 80, 0.4),
      0 0 0 2px rgba(76, 175, 80, 0.3),
      0 0 0 4px rgba(76, 175, 80, 0.2),
      0 0 0 6px rgba(76, 175, 80, 0.1);
  }
  50% {
    box-shadow: 
      0 25px 50px rgba(76, 175, 80, 0.6),
      0 0 0 3px rgba(76, 175, 80, 0.5),
      0 0 0 6px rgba(76, 175, 80, 0.4),
      0 0 0 9px rgba(76, 175, 80, 0.3);
  }
}

.success-effect .rfid-scanner {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  animation: success-celebration 2s ease-out;
}

@keyframes success-celebration {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(1.05) rotate(-5deg);
  }
  75% {
    transform: scale(1.08) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Enhanced scanner waves during tap */
.scanning-effect .scanner-wave {
  border-color: rgba(255, 255, 255, 0.8);
  animation-duration: 1s;
}

.scanning-effect .scanner-icon {
  animation: tap-icon-spin 1.5s ease-in-out;
}

@keyframes tap-icon-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ===============================================
   FULLSCREEN ENHANCEMENTS
   =============================================== */
.fullscreen-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

/* Fullscreen mode adjustments */
:fullscreen .module-absensi-container,
:-webkit-full-screen .module-absensi-container,
:-moz-full-screen .module-absensi-container,
:-ms-fullscreen .module-absensi-container {
  height: 100vh;
  width: 100vw;
}