.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.04);
  font-size: 14px;
}

.table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

.label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.input, .select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11, 18, 32, 0.06);
  background: var(--card-bg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.modal-backdrop.modal-show { display:flex; }

.modal {
  width: 100%;
  max-width: 720px;
  margin: 16px;
}

.modal .card {
  color: var(--text);
  background: #fff;
}

:root.dark .modal .card {
  background: var(--card-bg);
}

.modal .input,
.modal .select,
.modal textarea {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal .input::placeholder,
.modal textarea::placeholder {
  color: var(--muted);
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1400;
}

.toast {
  min-width: 240px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.info { background:#0ea5e9; }
.toast.success { background:var(--success); }
.toast.warn { background:#f59e0b; }
.toast.error { background:var(--danger); }


/* ================================
   USER DROPDOWN MENU RESTORED STYLE
   ================================ */

#userMenu {
  position: absolute;
  right: 0;
  top: 60px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  display: none;
  box-shadow: 0 6px 22px var(--shadow);
  backdrop-filter: blur(16px) saturate(160%);
  z-index: 4000;
}

/* Links inside the dropdown */
.user-menu-link {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.user-menu-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}

/* ---------------------------------------
   FOOTER
---------------------------------------- */
.footer {
  margin-top: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(46, 106, 255, 0.04), rgba(88, 179, 255, 0.08));
  border-top: 1px solid rgba(11, 18, 32, 0.06);
}

:root.dark .footer {
  background: linear-gradient(135deg, rgba(12, 19, 37, 0.5), rgba(22, 38, 69, 0.4));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.footer-logo {
  height: 34px;
  width: 34px;
  border-radius: 10px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: #fff;
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 6px 14px var(--shadow);
}

:root.dark .footer-logo {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-title {
  font-size: 15px;
  line-height: 1.2;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.12);
}

.footer-meta {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
