/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --bg-dark: #080b11;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-sidebar: rgba(13, 18, 30, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --color-primary: #00f2fe;     /* Neon Teal */
  --color-secondary: #4facfe;   /* Neon Blue */
  --color-success: #10b981;     /* Green */
  --color-danger: #f43f5e;      /* Pink/Red */
  --color-warning: #f59e0b;     /* Amber */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-glow: 0 0 15px rgba(0, 242, 254, 0.25);
  
  --font-family: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 172, 254, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 242, 254, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* ==========================================================================
   1. LOGIN INTERFACE
   ========================================================================== */
#login-container {
  display: none;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  text-align: center;
  animation: slideUp 0.6s ease-out;
}

#login-container.active {
  display: block;
}

.login-header {
  margin-bottom: 30px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: var(--neon-glow);
}

.logo-icon i {
  width: 32px;
  height: 32px;
  color: var(--bg-dark);
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.input-wrapper select option {
  background-color: #0d121f;
  color: var(--text-main);
}

.error-text {
  color: var(--color-danger);
  font-size: 13px;
  margin-top: 15px;
  min-height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--bg-dark);
  box-shadow: var(--neon-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 7px;
  gap: 5px;
}

.btn-sm i {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   2. MAIN DASHBOARD WORKSPACE
   ========================================================================== */
.dashboard-wrapper {
  display: none;
  width: 100%;
  height: 100vh;
  grid-template-columns: 260px 1fr;
}

.dashboard-wrapper.active {
  display: grid;
}

/* Sidebar Styling */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.sidebar-brand h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #cfd3dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.menu-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.menu-item i {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  margin-top: auto;
}

/* Main Content Area */
.main-content {
  height: 100vh;
  overflow-y: auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  animation: fadeIn 0.5s ease-out;
}

.page-title h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Sections */
.dashboard-section {
  display: none;
  flex-direction: column;
  flex-grow: 1;
}

.dashboard-section.active {
  display: flex;
}

/* Overview Section: Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  width: 26px;
  height: 26px;
}

.bbm-color {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.do-color {
  background: rgba(79, 172, 254, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(79, 172, 254, 0.2);
}

.user-color {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-color.tutup {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.status-color.buka {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-details h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Active Shift Details Grid */
.shift-details-grid {
  padding: 24px;
}

.shift-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.info-card h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   3. OPERATORS LAYOUT
   ========================================================================== */
.operators-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
  width: 100%;
}

.form-card {
  padding: 24px;
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header i {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   4. TABLES AND DATA DISPLAYS
   ========================================================================== */
.table-card {
  padding: 24px 0 0 0;
}

.table-card .card-header {
  padding: 0 24px 15px 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  text-align: left;
  margin-top: -10px;
}

th {
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: none;
}

td {
  padding: 18px 24px;
  font-size: 14px;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.015);
  transition: var(--transition);
}

tr {
  transition: var(--transition);
}

/* Round outer corners of the separate card rows */
td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 4px solid var(--color-secondary);
}

td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Hover transitions and glowing effect */
tr:hover td {
  background: rgba(255, 255, 255, 0.045);
}

tr:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Custom left border colors for different tables based on parent section wrapper */
#section-shifts table td:first-child {
  border-left-color: var(--color-primary);
}

#section-transactions table td:first-child {
  border-left-color: var(--color-warning);
}

#section-operators table td:first-child {
  border-left-color: var(--color-success);
}

#section-cabang table td:first-child {
  border-left-color: var(--color-secondary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Helpers */
.margin-top-lg {
  margin-top: 30px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-style: italic;
}

.small-btn-group {
  display: flex;
  gap: 8px;
}

.btn-xs {
  padding: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 10px;
}

.btn-xs i {
  width: 10px;
  height: 10px;
}

/* ==========================================================================
   ANIMATIONS KEYFRAMES
   ========================================================================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: slideUp 0.5s ease-out forwards;
}

/* ==========================================================================
   OPERATOR PORTAL CUSTOM STYLES
   ========================================================================== */
.hidden {
  display: none !important;
}

.forgot-pin-wrapper {
  text-align: right;
  margin-top: 8px;
}

#forgot-pin-link {
  color: var(--color-primary);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

#forgot-pin-link:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
}

.login-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 25px;
}

.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.login-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--bg-dark);
  box-shadow: var(--neon-glow);
}

.operator-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 25px;
}

.operator-profile-card .profile-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.operator-profile-card .profile-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.operator-profile-card .profile-info .profile-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.max-width-md {
  max-width: 480px;
}

.margin-auto {
  margin: 40px auto;
}

.text-center-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.status-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.status-badge-icon.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid var(--color-danger);
  color: var(--color-danger);
}

.op-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.flex-row-gap {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.select-filter {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.select-filter:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.select-filter option {
  background-color: #0d121f;
  color: var(--text-main);
}

.header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (max-width: 1200px) {
  .op-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .dashboard-wrapper {
    grid-template-columns: 80px 1fr;
  }
  .sidebar-brand h2,
  .menu-item span,
  .sidebar-footer span {
    display: none;
  }
  .sidebar-brand {
    justify-content: center;
  }
  .menu-item {
    justify-content: center;
    padding: 14px;
  }
  .operators-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    align-items: flex-start;
  }
  .dashboard-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .sidebar-brand {
    margin-bottom: 0;
  }
  .sidebar-brand h2 {
    display: none;
  }
  .operator-profile-card {
    display: none !important;
  }
  .sidebar-menu {
    flex-direction: row;
    gap: 8px;
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    padding: 4px 0;
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  .menu-item {
    flex-shrink: 0;
    padding: 10px 14px;
    justify-content: center;
  }
  .sidebar-footer {
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }
  .sidebar-footer .btn {
    padding: 10px;
    width: auto;
    border-radius: 10px;
  }
  .sidebar-footer span {
    display: none;
  }
  .main-content {
    padding: 16px;
    height: auto;
  }
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .refresh-indicator {
    width: 100%;
    flex-wrap: wrap;
  }
  .refresh-indicator select,
  .refresh-indicator input {
    flex: 1;
    min-width: 120px;
  }
  .refresh-indicator button {
    flex: 0 0 36px;
    min-width: 36px;
  }

  /* Hide button texts on mobile */
  #refresh-all-btn span,
  #op-refresh-btn span,
  #btn-toggle-operator-form span,
  #btn-toggle-cabang-form span,
  .adjust-stok-btn .btn-text {
    display: none;
  }

  /* Make main control buttons compact, rounded, and centered */
  #refresh-all-btn,
  #op-refresh-btn,
  #btn-toggle-operator-form,
  #btn-toggle-cabang-form {
    padding: 0;
    width: 36px;
    height: 36px;
    min-width: 36px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Optimize table action button sizes for mobile touch targets */
  .btn-xs {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }
  .btn-xs i {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ==========================================
   CUSTOM TOAST, MODAL & QUICK-ADD STYLING
   ========================================== */

/* 1. Quick-Add helpers underneath number inputs */
.quick-helpers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.quick-btn:hover {
  background: var(--color-primary);
  color: #0b0f19;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.quick-btn.reset {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-danger);
  border-color: rgba(244, 63, 94, 0.2);
}

.quick-btn.reset:hover {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}

/* 2. Custom Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 48px);
}

.custom-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(13, 18, 31, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.custom-toast.success {
  border-left: 5px solid var(--color-success);
}

.custom-toast.success i {
  color: var(--color-success);
}

.custom-toast.error {
  border-left: 5px solid var(--color-danger);
}

.custom-toast.error i {
  color: var(--color-danger);
}

.custom-toast.info {
  border-left: 5px solid var(--color-primary);
}

.custom-toast.info i {
  color: var(--color-primary);
}

/* 3. Custom Confirmation Modal */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 17, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.custom-modal-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.custom-modal-content {
  background: rgba(15, 22, 38, 0.95);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.05);
  width: 90%;
  max-width: 460px;
  border-radius: 24px;
  padding: 28px;
  animation: modalScaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.custom-modal-header h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.custom-modal-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-modal-footer button {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================
   PREMIUM LEADER DASHBOARD TABLE STYLES
   ========================================== */
.dashboard-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: -10px;
  width: 100%;
}

.dashboard-table th {
  border-bottom: none;
  padding: 18px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dashboard-table tbody tr {
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.dashboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.08);
}

.dashboard-table td {
  border-bottom: none;
  padding: 20px 24px;
  vertical-align: middle;
  font-size: 14px;
}

.dashboard-table td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 4px solid var(--color-primary);
  font-weight: 700;
}

.dashboard-table td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Glowing Pulse Dot for Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pill.buka {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.status-pill.buka::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseStatus 1.5s infinite;
}

.status-pill.tutup {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
}

.status-pill.tutup::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 8px #f43f5e;
}

@keyframes pulseStatus {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Dashboard Footer Style */
.dashboard-table tfoot tr {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.08), rgba(0, 242, 254, 0.08)) !important;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.dashboard-table tfoot td {
  padding: 22px 24px;
  color: var(--text-main);
  font-size: 15px;
  border-top: 1.5px solid rgba(0, 242, 254, 0.2);
  border-bottom: 1.5px solid rgba(0, 242, 254, 0.2);
}

.dashboard-table tfoot td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 4px solid var(--color-secondary);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.dashboard-table tfoot td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.unit-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 2px;
}

/* Month Filter & PDF Export Button Styling */
.select-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 7px;
  font-family: var(--font-family);
  font-size: 11px;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
}

.select-filter:hover, .select-filter:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Specific styling for input[type="month"] to style the picker icon in webkit browsers */
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Print/PDF Layout Helpers */
.pdf-report-container {
  padding: 30px;
  background: #ffffff !important;
  color: #111827 !important;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

.pdf-report-header {
  border-bottom: 3px double #d1d5db;
  padding-bottom: 20px;
  margin-bottom: 25px;
}

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

.pdf-report-brand h1 {
  font-size: 26px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
}

.pdf-report-brand p {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

.pdf-report-meta {
  text-align: right;
}

.pdf-report-meta h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 5px 0;
}

.pdf-report-meta p {
  font-size: 13px;
  color: #4b5563;
  margin: 2px 0;
}

.pdf-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.pdf-report-table th {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pdf-report-table td {
  border: 1px solid #d1d5db !important;
  padding: 10px 12px;
  font-size: 12px;
  color: #1f2937 !important;
}

.pdf-report-table tfoot td {
  font-weight: bold;
  background-color: #f9fafb !important;
}

.pdf-report-signatures {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}

.pdf-signature-box {
  width: 200px;
  text-align: center;
}

.pdf-signature-line {
  margin-top: 60px;
  border-top: 1px solid #4b5563;
  padding-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

/* Sidebar Dropdown Styling */
.menu-dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-toggle .dropdown-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.menu-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  margin-top: 4px;
  border-left: 1px dashed var(--border-color);
  margin-left: 26px;
}

.menu-dropdown.active .dropdown-submenu {
  display: flex;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.submenu-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.submenu-item.active {
  color: var(--color-primary);
  background: rgba(0, 242, 254, 0.08);
  border-left: 3px solid var(--color-primary);
  padding-left: 13px;
}

