/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-color: #0b0a11;
  --panel-bg: rgba(20, 18, 30, 0.55);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* TikTok Curated Palette */
  --accent-cyan: #00f2fe;
  --accent-pink: #fe2c55;
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan-glow: rgba(0, 242, 254, 0.3);
  --accent-pink-glow: rgba(254, 44, 85, 0.3);

  /* Functional Status */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  height: 100vh;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

/* --- BACKGROUND GLOW EFFECTS --- */
.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.glow-1 {
  top: -50px;
  left: -50px;
  background: var(--accent-cyan);
}

.glow-2 {
  bottom: 100px;
  right: -50px;
  background: var(--accent-pink);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* --- APP LAYOUT --- */
.app-container {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  margin: 0;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo i {
  font-size: 2rem;
}

.icon-glow {
  color: #fff;
  text-shadow: 
    -2px -2px 0px var(--accent-cyan),
    2px 2px 0px var(--accent-pink);
  animation: logoPulse 4s infinite alternate;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-logout {
  background: rgba(254, 44, 85, 0.1);
  border: 1px solid rgba(254, 44, 85, 0.25);
  color: var(--accent-pink);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.btn-logout:hover {
  background: var(--accent-pink);
  color: white;
  box-shadow: 0 0 10px var(--accent-pink-glow);
}

/* --- STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-cyan {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.2);
}

.icon-pink {
  background: rgba(254, 44, 85, 0.1);
  color: var(--accent-pink);
  box-shadow: inset 0 0 10px rgba(254, 44, 85, 0.2);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2);
}

.stat-info h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0.2rem;
}

/* --- MAIN LAYOUT & PANELS --- */
.main-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.2rem;
  flex: 1;
  min-height: 0;
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: border 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.panel-icon {
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* --- FORMS --- */
.form-panel form {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group label i {
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.row-group {
  display: flex;
  gap: 1rem;
}

.col-6 {
  flex: 1;
}

textarea {
  resize: vertical;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  line-height: 1.4;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.25);
  flex: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.4);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-cyan {
  background: var(--accent-cyan);
  color: #0b0a11;
  box-shadow: 0 3px 10px rgba(0, 242, 254, 0.25);
}

.btn-cyan:hover {
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

.btn-purple {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25);
}

.btn-purple:hover {
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-icon {
  min-width: 38px;
  width: auto;
  padding: 0 0.8rem;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cyan-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.03);
}

.btn-cyan-outline:hover {
  background: var(--accent-cyan);
  color: #0b0a11;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.btn-purple-outline {
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.03);
}

.btn-purple-outline:hover {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* --- TABLE CONTAINER & UTILS --- */
.table-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header-toolbar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.panel-header-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.search-box {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* --- BULK ACTIONS BAR --- */
.bulk-actions-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 242, 254, 0.06);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.75rem 1.5rem;
  animation: slideDown 0.3s ease;
}

.bulk-actions-bar.active {
  display: flex;
}

.selection-info {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

.bulk-buttons {
  display: flex;
  gap: 0.6rem;
}

.table-container {
  overflow: auto;
  flex: 1;
}

/* --- CUSTOM TABLE --- */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th, 
.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.custom-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.custom-table tbody tr {
  transition: var(--transition-smooth);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.custom-table tbody tr.selected {
  background: rgba(139, 92, 246, 0.06);
}

/* Row elements stylings */
.username-cell {
  font-weight: 600;
  color: var(--text-primary);
}

.badge-2fa {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-lokasi {
  display: inline-block;
  background: rgba(254, 44, 85, 0.1);
  color: var(--accent-pink);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(254, 44, 85, 0.2);
  text-align: center;
  min-width: 32px;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.action-btn.btn-detail:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.action-btn.btn-edit:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple-glow);
}

.action-btn.btn-delete:hover {
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* --- EMPTY & LOADING STATES --- */
.empty-state {
  text-align: center;
}

.empty-placeholder {
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-placeholder p {
  font-size: 0.95rem;
}

/* --- CUSTOM CHECKBOX --- */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 20px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: -10px;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-purple);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple-glow);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- TABLE FOOTER --- */
.table-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showing-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.export-all-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.export-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 360px;
  width: 100%;
}

.toast {
  background: rgba(20, 18, 30, 0.85);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast-success::before { background-color: var(--success); }
.toast-error::before { background-color: var(--danger); }
.toast-warning::before { background-color: var(--warning); }

.toast-icon {
  font-size: 1.15rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* --- MODAL DIALOG --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 90%;
  max-width: 650px;
  background: rgba(22, 20, 35, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.text-pink {
  color: var(--accent-pink);
  text-shadow: 0 0 8px var(--accent-pink-glow);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  color: var(--accent-pink);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.code-container {
  position: relative;
  background: #06050a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.25rem;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #0b0a11;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes logoPulse {
  from {
    text-shadow: -2px -2px 0px var(--accent-cyan), 2px 2px 0px var(--accent-pink);
  }
  to {
    text-shadow: -3px -1px 4px var(--accent-cyan), 3px 1px 4px var(--accent-pink);
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animated {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.zoomIn {
  animation-name: zoomIn;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* --- LOGIN SCREEN PREMIUM --- */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.login-card {
  width: 90%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(22, 20, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.login-logo h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.login-logo h2 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 2.5rem;
}

.toggle-password-btn {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.toggle-password-btn:hover {
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

/* --- PAGINATION STYLING --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-page {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
  font-weight: 600;
}

.btn-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-page:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}

.footer-left {
  display: flex;
  align-items: center;
}

/* --- MODAL FORM EDIT --- */
#edit-modal .modal-content {
  max-width: 550px;
}

#edit-modal .modal-body form {
  padding: 0;
}

/* --- MOBILE RESPONSIVE OPTIMIZATION --- */
@media (max-width: 768px) {
  .stats-grid {
    display: none !important;
  }
  
  .desktop-only-fields {
    display: none !important;
  }
  
  .desktop-only-column {
    display: none !important;
  }
  
  /* Make app container scrollable on mobile as it spans more than viewport */
  body {
    overflow-y: auto !important;
    height: auto !important;
  }
  
  .app-container {
    height: auto !important;
  }
  
  .main-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  
  .panel {
    height: auto !important;
  }
  
  .table-panel {
    margin-top: 1rem;
  }
}


