* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'JetBrains Mono', sans-serif;
}

body {
  min-height: 100vh;
  color: #e6ecff;
  background: #050b18;
  font-size: 16px;
  line-height: 1.5;
}

body.nologin {
  overflow: hidden;
}

.bg-media {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-video.full,
.bg-image.full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  position: absolute;
  top: 0;
  left: 0;
}

.hidden {
  display: none;
}

.screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.glass {
  background: rgba(11, 27, 80, 0.4); /* Updated for transparency with glassmorphism effect */
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.login {
  width: 360px;
  padding: 42px;
  text-align: center;
}

.brand {
  font-size: 36px;
  margin-bottom: 22px;
}

.login input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #102060;
  background: #08122c;
  color: #fff;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.login input:focus {
  border-color: #1f6feb;
  background: #0b1b50;
  outline: none;
}

.login button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f6feb, #1b4bd6);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.login button:hover {
  background: linear-gradient(180deg, #1b4bd6, #1f6feb);
  transform: scale(1.05);
}

.panel {
  max-width: 1500px;
  margin: 90px auto;
  padding: 18px;
  position: relative;
  background: rgba(11, 27, 80, 0.4); /* Transparent with glassmorphism effect */
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.header {
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  background: rgba(11, 27, 80, 0.6); /* Slightly darker transparency */
  border-radius: 18px 18px 0 0;
}

.header h1 {
  color: #fff;
  font-size: 28px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(11, 27, 80, 0.6); /* Semi-transparent controls */
  border-radius: 12px;
}

.controls input,
.controls select {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #102060;
  background: #08122c;
  color: #fff;
  transition: all 0.3s ease;
}

.controls input:focus,
.controls select:focus {
  border-color: #1f6feb;
  background: #0b1b50;
  outline: none;
}

.search {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(11, 27, 80, 0.6); /* Semi-transparent search bar */
  border-radius: 12px;
}

.search input {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #102060;
  background: #08122c;
  color: #fff;
  transition: all 0.3s ease;
}

.search input:focus {
  border-color: #1f6feb;
  background: #0b1b50;
  outline: none;
}

.table-wrap {
  padding: 10px;
  max-height: 520px;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  background: #08122c;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

th,
td {
  padding: 13px;
  text-align: left;
  border-radius: 8px;
}

th {
  background: #102960;
  color: #fff;
}

td {
  background: #08122c;
  color: #fff;
}

tr td:first-child {
  border-radius: 12px 0 0 12px;
}

tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #102060;
  background: #102060;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(180deg, #1f6feb, #1b4bd6);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #1b4bd6, #1f6feb);
  transform: scale(1.05);
}

.btn.subtle {
  background: #102060;
}

.btn.subtle:hover {
  background: #1b4bd6;
  transform: scale(1.05);
}

.btn.danger {
  background: linear-gradient(180deg, #ff5f5f, #e84545);
}

.btn.danger:hover {
  background: linear-gradient(180deg, #e84545, #ff5f5f);
  transform: scale(1.05);
}

.logout {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 5;
}

@media (max-width: 1200px) {
  .controls {
    grid-template-columns: repeat(3, 1fr);
  }

  .glass {
    width: 90%;
  }
}

@media (max-width: 900px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .search input {
    width: 100%;
  }

  .glass {
    width: 100%;
  }

  .login {
    width: 100%;
    padding: 24px;
  }

  .panel {
    width: 100%;
    margin: 30px auto;
    padding: 16px;
  }
}

@media (max-width: 500px) {
  .brand {
    font-size: 28px;
  }

  .login input,
  .controls input,
  .controls select,
  .search input {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
  }
}
