/* Jangan Di Hapus Ya Kontol */

@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Viga&display=swap");

:root {
  --modal-z-index: 1050;
  --header-z-index: 1000;
  --primary-color: #00d4ff;
  --background-dark: rgba(45, 34, 68, 0.4);
  --border-light: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow-x: hidden;
}

/* Animated background */
body:before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExM3Ruc3J3NHd2cXJ6cHNld3IxM28xd2tibmRudmgwYzJmeDVzdzB4MyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/V4NSR1NG2p0KeJJyr5/giphy.gif") no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: -2;
}

body:after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(3px);
  z-index: -1;
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 420px; /* precise maximum width */
  padding: 20px;
  margin: 0 auto;
  /* center vertically on pages that only contain the login container */
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background-color: rgba(13, 12, 19, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.logo-section {
  margin-bottom: 30px;
}

.logo-icon {
  font-size: 3rem;
  color: #00d4ff;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.brand-title {
  font-family: 'Bungee', cursive;
  font-size: 2rem;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  margin-bottom: 5px;
}

.brand-subtitle {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.form-label {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #00d4ff;
  transform: translateY(-50%) scale(1.1);
}

.form-input {
  position: relative;
  font-family: "Viga", sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  height: 50px;
  font-size: 14px;
  padding: 0 45px 0 45px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Ensure consistent styling for all input fields */
.form-input {
  height: 50px !important;
  border-radius: 15px !important;
  padding: 0 45px !important;
}

.login-btn {
  position: relative;
  font-family: "Viga", sans-serif;
  background: rgba(0, 212, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 16px;
  padding: 15px 30px;
  margin-top: 15px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background: rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 212, 255, 0.3);
}

.login-btn:focus {
  outline: none;
}

/* Modal Styles */
.modal {
  z-index: var(--modal-z-index) !important;
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-content.glassmorphism {
  background: rgba(45, 34, 68, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.alert-msg {
  position: relative;
  font-family: "Viga", sans-serif;
  background: rgba(255, 69, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid rgba(255, 69, 0, 0.5);
  font-size: 13px;
  padding: 12px 20px;
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.footer-text {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (max-width: 480px) {
  .login-container {
    padding: 15px;
  }
  
  .login-box {
    padding: 25px 20px;
  }
  
  .brand-title {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 2.5rem;
  }
}


.app, .app * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}
/* Duplicate global reset and background removed — consolidated earlier in the file */

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  padding-top: 80px;
  padding-bottom: 60px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--header-z-index);
  background: rgba(13, 12, 19, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav .logo-section {
  display: flex;
  align-items: center;
}

.nav .logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  color: #00d4ff;
  font-size: 2rem;
}

.nav .brand {
  font-family: 'Bungee', cursive;
  font-size: 1.5rem;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav .nav-links {
  display: flex;
  gap: 15px;
}

.nav .fill {
  position: relative;
  padding: 8px 16px;
  color: #fff;
  font-family: 'Viga', sans-serif;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav .fill:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
}

/* Main Content */
.app h1 {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 15px;
}

h1 strong {
  font-family: 'Bungee', cursive;
  font-size: 3em;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.app .desc {
  max-width: 600px;
  margin: 0 auto 30px;
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}

.bungkus {
  position: relative;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(10px) saturate(200%);
  -webkit-backdrop-filter: blur(10px) saturate(200%);
  background-color: rgba(45, 34, 68, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  padding: 20px;
  backdrop-filter: blur(8px) saturate(180%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-card .icon {
  font-size: 2.5rem;
  color: #00d4ff;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  margin-bottom: 5px;
}

.stat-card p {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bot Management Section */
.bot-management {
  width: 100%;
  backdrop-filter: blur(10px) saturate(200%);
  background-color: rgba(45, 34, 68, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
}

.section-title {
  font-family: 'Viga', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn-glass {
  position: relative;
  font-family: "Viga", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px 0 rgba(0, 212, 255, 0.3);
}

.btn-glass.success {
  background: rgba(124, 252, 0, 0.2);
}

.btn-glass.success:hover {
  background: rgba(124, 252, 0, 0.4);
}

/* Bot Table */
.bot-table {
  width: 100%;
  margin-top: 20px;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.table-glass {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.table-glass thead th {
  background: rgba(0, 0, 0, 0.4);
  color: #00d4ff;
  font-family: 'Viga', sans-serif;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.table-glass tbody td {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Viga', sans-serif;
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.table-glass tbody tr:hover td {
  background: rgba(0, 212, 255, 0.1);
}

/* Table wrapper and horizontal scroll containment
   Ensure table stays visually inside the card and header doesn't overflow
*/
.table-wrapper {
  width: 100%;
  border-radius: 12px;
  background: transparent;
  overflow: hidden; /* clip visual overflow so table stays inside */
  padding: 8px; /* inner padding so table doesn't touch edges */
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 6px; }

/* Keep headers visually inside the container when horizontally scrolling */
.table-glass { min-width: 700px; table-layout: auto; }
.table-glass thead th { position: sticky; top: 0; z-index: 3; }
.table-glass thead th, .table-glass tbody td { white-space: nowrap; }

/* Status Badge */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-running {
  background: rgba(124, 252, 0, 0.3);
  color: #7cfc00;
  border: 1px solid rgba(124, 252, 0, 0.5);
}

.status-stopped {
  background: rgba(255, 69, 0, 0.3);
  color: #ff4500;
  border: 1px solid rgba(255, 69, 0, 0.5);
}

/* Action Buttons in Table */
.btn-action {
  padding: 4px 8px;
  margin: 0 2px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action.start {
  background: rgba(124, 252, 0, 0.3);
  color: #7cfc00;
}

.btn-action.stop {
  background: rgba(255, 69, 0, 0.3);
  color: #ff4500;
}

.btn-action.restart {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.btn-action.logs {
  background: rgba(0, 123, 255, 0.3);
  color: #007bff;
}

.btn-action.edit {
  background: rgba(108, 117, 125, 0.3);
  color: #6c757d;
}

.btn-action.delete {
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

.btn-action:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.copy {
  width: 100%;
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Viga", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(0, 0, 0, 0.75);
  padding: 8px;
  z-index: 999;
}

/* Rainbow Text Animation */
.rainbow-text .char {
  color: hsl(calc(360deg * var(--char-percent)), 90%, 65%);
}

.rainbow-text.animated .char {
  animation: rainbow-colors 2s linear infinite;
  animation-delay: calc(-2s * var(--char-percent));
}

@keyframes rainbow-colors {
  0% { color: hsl(197, 97%, 66%, 1); }
  25% { color: hsl(0, 100%, 100%, 1); }
  50% { color: hsl(348, 83%, 81%, 1); }
  75% { color: hsl(.75turn, 90%, 65%); }
  100% { color: hsl(1turn, 90%, 65%); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 0 15px;
  }
  
  .nav .brand {
    font-size: 1.2rem;
  }
  
  .nav .nav-links {
    gap: 10px;
  }
  
  .nav .fill {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
  }
  
  .action-buttons {
    gap: 10px;
  }
  
  .btn-glass {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  h1 strong {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .table-glass thead th,
  .table-glass tbody td {
    padding: 8px;
    font-size: 11px;
  }
  
  .btn-action {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* ---------- Merged search.css + dark-theme overrides (appended) ---------- */
.search-filter-section {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-box { position: relative; width: 100%; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); font-size:1.1rem; pointer-events:none; }
.search-input { width:100%; height:45px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:0 15px 0 45px; color:#fff; font-family:'Viga',sans-serif; font-size:0.95rem; transition:all .2s ease; }
.search-input:focus { outline:none; border-color:var(--primary-color); background:rgba(255,255,255,0.06); box-shadow:0 0 0 3px rgba(0,212,255,0.06); }

.filter-group { display:flex; gap:10px; flex-wrap:wrap; }
.filter-select { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:10px; color:white; padding:8px 15px; font-family:'Viga',sans-serif; font-size:0.9rem; min-width:150px; cursor:pointer; transition:all .2s ease; appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:calc(100% - 12px) center; padding-right:35px; }
.filter-select:focus { outline:none; border-color:var(--primary-color); background-color:rgba(255,255,255,0.06); box-shadow:0 0 0 3px rgba(0,212,255,0.06); }

#clearFilters { padding:8px 15px; background:rgba(255,255,255,0.04); color:rgba(255,255,255,0.85); border:1px solid rgba(255,255,255,0.08); transition:all .2s ease; font-family:'Viga',sans-serif; font-size:0.9rem; display:flex; align-items:center; gap:6px; border-radius:10px; }
#clearFilters:hover { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.12); }

/* Dark-theme minimal overrides */
.nav { background: rgba(13,12,19,0.78) !important; }
.stat-card, .bot-management, .modal-content.glassmorphism { background: rgba(13,12,19,0.72) !important; }
.table-glass { background: rgba(13,12,19,0.55) !important; }
.btn-glass { background: rgba(255,255,255,0.04) !important; }

@media (max-width:768px){ .filter-select{min-width:120px;} #clearFilters{width:100%;justify-content:center} }

/* End merged block */

/* Ensure modal and backdrop stacking/pointer behavior (fix interactivity) */
.modal { z-index: 1050 !important; }
.modal-backdrop { z-index: 1040 !important; }
.modal-dialog { pointer-events: all !important; }

