/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;

  background-image: url("images/bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Dim overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* =========================================================
   UTILITIES
========================================================= */
.muted {
  color: rgb(146, 255, 4);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* =========================================================
   LOGIN PAGE
========================================================= */
.login-card {
  width: min(420px, 92%);
  margin: auto;
  margin-top: 10vh;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);

  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
  margin-bottom: 6px;
  text-align: center;
}

.alert {
  background: #ffe1e1;
  border: 1px solid #ffbcbc;
  color: #8a0a0a;
  padding: 10px;
  border-radius: 10px;
  margin: 12px 0;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */
input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d7dbe7;
  outline: none;
  margin: 6px 0 14px 0;
  font-size: 14px;
}

label {
  font-weight: bold;
  font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #d7dbe7;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #0056ff;
  border-color: #0056ff;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 86, 255, 0.3);
}

.btn.danger {
  background: #d91919;
  border-color: #d91919;
  color: #fff;
}

/* =========================================================
   LAYOUT
========================================================= */
.layout {
  display: flex;
  min-height: 100vh;
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar {
  width: 260px;
  background: #0b1437;
  color: #fff;
  padding: 20px;
}

.brand {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 18px;
}

.menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #dbe2ff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu a.active {
  background: rgba(0, 86, 255, 0.35);
  color: #fff;
}

.menu a.danger {
  background: rgba(217, 25, 25, 0.2);
}

/* Dropdown */
.dropdown {
  margin-bottom: 10px;
}

.drop-title-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 6px;
}

.drop-title-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.drop-title-link.active {
  background: rgba(0, 86, 255, 0.35);
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.main {
  flex: 1;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  color: green;
}

.stat-btn {
  background: #0056ff;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 86, 255, 0.25);
}

/* =========================================================
   CARDS
========================================================= */
.card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   TABLES
========================================================= */
.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eef1fb;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f7f9ff;
  font-size: 13px;
}

/* =========================================================
   SEARCH ROW
========================================================= */
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-row input {
  margin: 0;
  flex: 1;
  min-width: 260px;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  margin-top: 30px;
  padding: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   LOGIN LOGO
========================================= */
.login-logo {
  text-align: center;
  margin-bottom: 15px;
}

.login-logo img {
  width: 90px;
  height: auto;
}

/* =========================================
   SIDEBAR LOGO
========================================= */
.sidebar-logo img {
  width: 65px;
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
  width: 60px;
  height: auto;
}

.brand {
  text-align: center;
}
