/* =========================================
   Tema PT Transportasi Banyumas Raya
   MERAH (#C41E3A) - PUTIH (#FFFFFF) - HITAM (#1a1a1a)
   Modern, Sophisticated, Eye-Catching Design
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Legacy Style Colors */
  --primary-red: #c41e3a;
  --dark-red: #8b0000;
  --light-red: #ffe5e5;
  --bright-red: #ff2e4b;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #888888;
  --gray-700: #444444;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border-color: #d0d0d0;
  --success-green: #2e7d32;
  --success-bg: #e8f5e9;
  
  /* Brand Colors (Admin) */
  --red-50:  #FEF2F2;
  --red-100: #FEE2E2;
  --red-200: #FECACA;
  --red-300: #FCA5A5;
  --red-500: #C41E3A;
  --red-600: #A01530;
  --red-700: #8B0000;
  --red-800: #6B0000;

  /* Neutral (Admin) */
  --gray-50: #F9FAFB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic (Admin) */
  --primary:        var(--red-500);
  --primary-hover:  var(--red-600);
  --primary-dark:   var(--red-700);
  --primary-light:  var(--red-50);
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-on-red:    var(--white);
  --border-focus:   var(--red-500);
  --bg-body:        var(--gray-50);
  --bg-white:       var(--white);
  --bg-light:       var(--gray-100);

  /* Status colors (Admin) */
  --success:     #16A34A;
  --warning:     #D97706;
  --warning-bg:  #FEF3C7;
  --info:        #2563EB;
  --info-bg:     #DBEAFE;
  --danger:      var(--red-500);
  --danger-bg:   var(--red-50);

  /* Layout & Modals (Admin) */
  --header-height: 72px;
  --sidebar-width: 260px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows (Combined) */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.1);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.15);
  --shadow-red:  0 4px 20px rgba(196,30,58,0.25);
  --shadow-red-lg: 0 8px 32px rgba(196,30,58,0.30);

  /* Transitions (Admin) */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.40s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-modal:  all 0.30s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Notification Toast Variables */
  --toast-success-bg: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  --toast-error-bg: linear-gradient(135deg, #C62828 0%, #F44336 100%);
  --toast-info-bg: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
  --toast-warning-bg: linear-gradient(135deg, #F57F17 0%, #FFC107 100%);
  --toast-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --toast-radius: 12px;
  --toast-duration: 0.4s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #fafafa 0%, var(--white) 100%);
  color: var(--text-dark);
  line-height: 1.6;
}

/* =========================================
   Login Page Split-Screen Layout
========================================= */
body:has(.login-split-wrapper) {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'General Sans', sans-serif;
}

.login-split-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Panel - Branding */
.login-left-panel {
  flex: 1;
  background: #dc2626; /* Standard Red-600 */
  color: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Decorative background circle on left panel */
.login-left-panel::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}

.brand-logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  border: none;
}

.form-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border: none;
}

.brand-content {
  margin-bottom: 20%;
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.brand-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.brand-content p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}



/* Right Panel - Form */
.login-right-panel {
  flex: 0 0 550px;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

/* Login page - Container overrides */
body:has(.login-split-wrapper) .login-container {
  box-shadow: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

/* Background animation */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-red);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Header Umum --- */
.header {
  background:
    linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%),
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 255, 255, 0.1),
      transparent 50%
    );
  color: var(--white);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 35px;
  box-shadow:
    0 8px 30px rgba(196, 30, 58, 0.25),
    0 0 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.header h2,
.header h3 {
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 24px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.header label,
.header small {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* --- Jam Digital --- */
.jam-digital {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-red);
  text-align: center;
  margin-bottom: 25px;
  padding: 25px;
  background: linear-gradient(135deg, var(--white) 0%, #f8f8f8 100%);
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(196, 30, 58, 0.15),
    0 0 40px rgba(0, 0, 0, 0.05);
  letter-spacing: 4px;
  border: none;
  font-family: "Courier New", monospace;
}

.jam-container {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-top: 10px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
}

/* --- Tabel (Admin) - Premium --- */
.table-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(196, 30, 58, 0.05);
  overflow: hidden;
  border: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    #cc1a30 50%,
    var(--dark-red) 100%
  );
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

tr:hover {
  background-color: linear-gradient(
    90deg,
    rgba(196, 30, 58, 0.02),
    transparent
  );
  background: linear-gradient(90deg, rgba(196, 30, 58, 0.02), transparent);
}

tr:nth-child(even) {
  background-color: rgba(245, 245, 245, 0.5);
}

tr:last-child td {
  border-bottom: none;
}

/* =========================================
   BUTTONS — Unified Design System
   ========================================= */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}

.btn:hover::after  { background: rgba(255,255,255,0.10); }
.btn:active::after { background: rgba(255,255,255,0.20); }

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hover lift */
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0);    box-shadow: var(--shadow-sm); }

/* --- Variants --- */
.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { box-shadow: var(--shadow-red-lg); }
.btn-primary svg { stroke: white; }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
}
.btn-secondary svg { stroke: white; }

/* Secondary inside white containers */
.modal-content .btn-secondary,
.confirm-dialog .btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.modal-content .btn-secondary:hover,
.confirm-dialog .btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}
.modal-content .btn-secondary svg,
.confirm-dialog .btn-secondary svg { stroke: var(--text-primary); }

.btn-danger {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-danger:hover {
  background: rgba(196,30,58,0.85);
  border-color: var(--red-500);
  box-shadow: var(--shadow-red);
}
.btn-danger svg { stroke: white; }

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid var(--red-500);
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 14px;
  height: 38px;
  outline: none;
}
.btn-danger-outline:hover {
  background: var(--red-50);
  border-color: var(--red-700);
  color: var(--red-700);
}
.btn-danger-outline:hover svg { stroke: var(--red-700); }
.btn-danger-outline:focus,
.btn-danger-outline:active {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.18);
  background: var(--red-50);
  color: var(--red-700);
}
.btn-danger-outline:focus svg,
.btn-danger-outline:active svg { stroke: var(--red-700); }
.btn-danger-outline svg { stroke: #111111; }

.btn-export {
  background: linear-gradient(135deg, #15803D, #14532D);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(21,128,61,0.25);
}
.btn-export:hover { box-shadow: 0 6px 20px rgba(21,128,61,0.35); }
.btn-export svg { stroke: white; }

/* Inside modal toolbar */
.btn-refresh {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  font-size: 12px;
  padding: 8px 14px;
  height: 38px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.btn-refresh:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.btn-refresh:active {
  transform: translateY(0);
}
.btn-refresh svg { 
  stroke: currentColor;
  width: 14px;
  height: 14px;
}

.btn-add {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
  color: var(--white);
  font-size: 12px;
  padding: 8px 16px;
  height: 38px;
  box-shadow: var(--shadow-red);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-add::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}
.btn-add:hover { 
  box-shadow: var(--shadow-red-lg);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--red-600) 0%, var(--red-800) 100%);
}
.btn-add:active {
  transform: translateY(0);
}
.btn-add svg { 
  stroke: white;
  width: 14px;
  height: 14px;
}

.btn-full { width: 100%; }
.btn-flex { flex: 1; }

/* Button group in header */
.button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- Forms & Inputs - Premium --- */
input[type="date"],
input[type="text"],
input[type="password"],
select,
textarea {
  padding: 13px 16px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--white);
  color: var(--text-dark);
  font-weight: 500;
}

input[type="date"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-red);
  box-shadow:
    0 0 0 4px rgba(196, 30, 58, 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  background: linear-gradient(to right, rgba(196, 30, 58, 0.02), var(--white));
}

/* --- Badges & Status - Premium --- */
.badge {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hadir {
  background: linear-gradient(135deg, var(--success-bg), #d4edda);
  color: var(--success-green);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.belum {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  border: 1px solid rgba(230, 81, 0, 0.2);
}

.status {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.status.belum {
  background: linear-gradient(135deg, var(--white), var(--gray-100));
  border-left: 5px solid #e65100;
}

.status.masuk {
  background: linear-gradient(135deg, var(--success-bg), #c8e6c9);
  border-left: 5px solid var(--success-green);
  color: var(--success-green);
  font-weight: 600;
}

/* --- Media & Misc --- */
img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}
#video,
#canvas {
  width: 100%;
  max-width: 400px;
  display: none;
  margin: 0 auto;
  border-radius: 8px;
  border: 3px solid var(--primary-red);
}
.lokasi-info {
  text-align: center;
  padding: 14px;
  background: var(--gray-100);
  border-radius: 6px;
  margin: 15px 0;
  font-size: 14px;
  border: 1px solid var(--border-color);
}
.hidden {
  display: none !important;
}

/* =========================================
   MODAL — Base Styles
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.active { display: flex; }

/* Modal content base */
.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  max-height: 92vh;
  overflow-y: auto;
  border-top: 4px solid var(--primary);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 35px;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content h3 {
  font-family: var(--font-primary), sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* =========================================
   Camera Action Buttons - Modern
========================================= */

.camera-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.camera-actions__button {
  min-width: 180px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.camera-actions__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.camera-actions__button--primary {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
}

.camera-actions__button--primary:hover {
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.camera-actions__button--capture {
  background: var(--dark-red);
  color: var(--white);
}

.camera-actions__button--exit {
  background: #ff9800;
  color: var(--white);
}

.camera-actions__button--new-entry {
  background: var(--success-green);
  color: var(--white);
}

.camera-actions__button--disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.6;
}

.camera-actions__button--disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .camera-actions {
    margin-top: 15px;
    gap: 8px;
  }

  .camera-actions__button {
    min-width: 150px;
    padding: 10px 18px;
    font-size: 13px;
  }
}



/* =========================================
   Login Page Styles - Bold, Modern & Eye-Catching
========================================= */

.login-container {
  font-family: 'General Sans', sans-serif;
  background: var(--white);
  padding: 70px 55px;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(196, 30, 58, 0.2),
    0 0 80px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}
.login-container * {
  font-family: 'General Sans', sans-serif;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.login-container h2 {
  text-align: center;
  margin-bottom: 5px;
  color: var(--text-dark);
  font-size: 42px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  letter-spacing: -1px;
  line-height: 1.1;
}

.login-container::after {
  content: "PT Transportasi Banyumas Raya";
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 40px;
  margin-top: 5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* Form Groups */
.form-group {
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  background: linear-gradient(
    to right,
    rgba(196, 30, 58, 0.01),
    rgba(255, 255, 255, 0.5)
  );
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow:
    0 0 0 5px rgba(196, 30, 58, 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.05);
  background: linear-gradient(to right, rgba(196, 30, 58, 0.03), var(--white));
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 400;
}

/* Login Button - Premium Premium */
.btn-login {
  width: 100%;
  padding: 16px;
  background: #dc2626; /* Standard Red */
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: #b91c1c; /* Standard Red hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition:
    width 0.7s ease-out,
    height 0.7s ease-out;
  z-index: -1;
}

.btn-login:hover::before {
  width: 500px;
  height: 500px;
}

.btn-login:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 35px rgba(196, 30, 58, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(196, 30, 58, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Alert / Notification Popup - Modern
========================================= */

.alert {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-align: left;
  margin-top: 16px;
  line-height: 1.5;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  animation: alertSlideIn 0.3s ease-out;
  border-left: 4px solid;
}

/* --- Error Variant --- */
.alert--error {
  background: #fef0f0;
  color: var(--dark-red);
  border-left-color: var(--primary-red);
  display: block;
}

/* --- Success Variant --- */
.alert--success {
  background: var(--success-bg);
  color: var(--success-green);
  border-left-color: var(--success-green);
  display: block;
}

/* --- Info Variant --- */
.alert--info {
  background: #e3f2fd;
  color: #1565c0;
  border-left-color: #1976d2;
  display: block;
}

/* --- Warning Variant --- */
.alert--warning {
  background: #fff8e1;
  color: #f57f17;
  border-left-color: #fbc02d;
  display: block;
}

/* Slide-in Animation */
@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Loading Spinner
========================================= */
.loading {
  display: none;
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.loading p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.spinner {
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Info Text */
.info-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 20px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: 6px;
}

/* =========================================
   Admin Page Styles
/* Admin Panel Header */
.admin-header {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--white);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.admin-header h2 {
  margin: 0;
  font-weight: 600;
}

/* Responsive Design - Mobile Optimized */
@media (max-width: 768px) {
  .login-container {
    padding: 50px 30px;
    max-width: 100%;
    margin: 20px;
  }

  .login-container h2 {
    font-size: 32px;
  }

  .header {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .header h2 {
    font-size: 20px;
  }

  .header-right {
    width: 100%;
  }

  .button-group {
    flex-wrap: wrap;
  }

  .table-container {
    overflow-x: auto;
  }

  th,
  td {
    padding: 14px;
    font-size: 13px;
  }

  .jam-digital {
    font-size: 28px;
    padding: 18px;
  }
}

/* =========================================
   DASHBOARD PAGE STYLES (Clean UI)
   ========================================= */
body:has(.dashboard-container) {
  font-family: 'General Sans', sans-serif;
  background-color: var(--bg-body);
}

.dashboard-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
}

.dashboard-header small {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-logout {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--white);
  color: var(--red-600);
  border: 1px solid var(--red-200);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-logout:hover {
  background-color: var(--red-50);
  color: var(--red-700);
  border-color: var(--red-300);
  box-shadow: none;
  transform: translateY(-1px);
}

.jam-digital {
  font-family: 'General Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-red);
  text-align: center;
  margin-bottom: 15px;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  letter-spacing: 1px;
}

.status {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  background: var(--bg-light);
  border: none !important;
  box-shadow: none !important;
}

.card {
  padding: 0;
  margin-bottom: 10px;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.form-operasional {
  background: var(--white);
  margin-bottom: 20px;
}

.form-operasional label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-operasional select,
.form-operasional input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'General Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  transition: all 0.2s ease;
}

.form-operasional select:focus,
.form-operasional input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.readonly-input {
  background-color: var(--gray-100) !important;
  color: var(--gray-500) !important;
  cursor: not-allowed;
  font-weight: 600;
}

.debug-panel {
  background: var(--gray-50);
  padding: 12px;
  margin: 15px 0;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  border: 1px solid var(--gray-200);
}

@media (max-width: 480px) {
  .login-split-wrapper {
    flex-direction: column;
  }

  .login-left-panel {
    padding: 30px 20px;
    min-height: 250px;
    flex: none;
  }
  


  .brand-content {
    margin-bottom: 0;
    margin-top: 30px;
  }

  .brand-content h1 {
    font-size: 32px;
  }

  .login-right-panel {
    padding: 20px;
  }

  .login-container {
    padding: 40px 25px;
    border-radius: 12px;
    max-width: 100%;
  }

  .login-container h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 11px;
  }

  .form-group input {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  .btn {
    padding: 13px 20px;
    font-size: 12px;
    height: auto;
  }

  .btn-login {
    padding: 15px;
    font-size: 14px;
    margin-top: 8px;
  }

  .header {
    padding: 25px 15px;
    gap: 15px;
  }

  .filter-section {
    margin-top: 0;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  .input-date,
  .input-select {
    width: 100%;
    min-width: unset;
  }

  .button-group {
    flex-direction: column;
    gap: 8px;
  }

  .button-group .btn {
    width: 100%;
  }

  th,
  td {
    padding: 12px 8px;
    font-size: 12px;
  }

  .jam-digital {
    font-size: 24px;
    padding: 16px;
    letter-spacing: 2px;
  }
}
