/* ---------------- BASE COLORS ---------------- */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --accent: #0b76f7;
  --border: #dce3ef;
  --text: #111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter", Arial;
}

/* Wrapper Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #07315f;
  padding: 20px;
  color: #fff;
}

.sidebar .logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.sidebar button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px;
  color: #fff;
  font-size: 16px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}

.sidebar button.active {
  background: rgba(255,255,255,0.18);
}

/* Main Content */
.main {
  flex: 1;
  padding: 24px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

input, select, button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.btn {
  background: var(--accent);
  color: white;
  border: none;
}

.btn-outline {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

/* Table */
.table-wrapper {
  max-height: 400px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #e9f1ff;
}

/* ---------------- LOGIN PAGE UI ---------------- */

.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #051937, #004d7a, #008793, #00bf72, #a8eb12);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

@keyframes gradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.glass {
  backdrop-filter: blur(18px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 35px;
  width: 350px;
  text-align: center;
  animation: popUp 0.7s ease;
}

@keyframes popUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-title {
  font-size: 26px;
  color: #fff;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #e7f0ff;
  font-size: 14px;
  margin-bottom: 25px;
}

/* Floating Labels */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 16px;
  color: #fff;
  outline: none;
}

.input-group input:focus {
  border-color: #69a5ff;
  box-shadow: 0 0 10px rgba(105,165,255,0.5);
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 15px;
  color: #d1e4ff;
  transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  padding: 0 5px;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
}

/* Show/Hide password icon */
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 14px;
  color: #fff;
  cursor: pointer;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 12px;
  border: none;
  margin-top: 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b76f7, #4ba4ff);
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(75,164,255,0.6);
}

/* Error Message */
.login-error {
  color: #ff8b8b;
  display: none;
  margin-top: 12px;
}

/* User Box */
.user-box {
  background: rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Logout Button */
.logout-btn {
  background: linear-gradient(135deg, #ff4141, #e60000);
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  width: 100%;
  border: none;
  margin-top: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.logout-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 80, 80, 0.6);
}
