/* --------------------------------------------------
   COLORS (match Phoenix dark palette)
-------------------------------------------------- */
:root {
  --bs-body-bg:       #1E1E2D;
  --bs-sidebar-bg:    #2A2A3F;
  --bs-navbar-bg:     #1E1E2D;
  --bs-card-bg:       #2A2A3F;
  --bs-text:          #E9E9F0;
  --bs-text-secondary:#A0A0B2;
  --bs-border:        #3A3A50;
}

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
  background: var(--bs-body-bg);
  color: var(--bs-text);
}
a, .nav-link, table, th, td {
  color: var(--bs-text-secondary) !important;
}
a:hover, .nav-link:hover,
.nav-link.active {
  color: #FFF;
}

/* --------------------------------------------------
   SIDEBAR
-------------------------------------------------- */
.sidebar {
  width: 240px;
  background: var(--bs-sidebar-bg);
  overflow-y: auto;
  transition: width .3s;
}
.sidebar.collapsed { width: 0; }
.sidebar .nav-link {
  padding: .5rem 1rem;
  font-size: .9rem;
}
.sidebar .nav-link i { width: 1.25rem; text-align: center; }

/* badges & notification dot */
.badge-notif {
  position: absolute;
  top: 0; right: 0;
  transform: translate(50%,-50%);
}
.nav span {
	background: #ddd;
    padding: 4px 10px;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
  background: var(--bs-navbar-bg)!important;
  border-bottom: 1px solid var(--bs-border);
}
.form-control-dark {
  background: #2A2A3F;
  border: none;
  color: var(--bs-text-secondary);
}
.form-control-dark::placeholder { color: var(--bs-text-secondary); }

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */
.card, .bg-card {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border);
  border-radius: .75rem;
}
.card-title {
  font-weight: 600; font-size: 1rem;
  color: var(--bs-text);
}
.card-text { color: var(--bs-text-secondary); }

/* --------------------------------------------------
   TABLES
-------------------------------------------------- */
.table-dark {
  color: var(--bs-text);
  background-color: var(--bs-sidebar-bg);
}
.table-dark th, .table-dark td {
  border-color: var(--bs-border);
}
.table-dark thead th {
  color: var(--bs-text);
  border-bottom: 1px solid var(--bs-border);
}
.table-dark tbody tr:hover {
  background: rgba(255,255,255,0.05);
}
.modal-content {
  color: #333;
}
/* --------------------------------------------------
   UTILS
-------------------------------------------------- */
.text-secondary { color: var(--bs-text-secondary)!important; }
.border-end { border-right: 1px solid var(--bs-border)!important; }
.bg-sidebar  { background: var(--bs-sidebar-bg)!important; }
.bg-navbar   { background: var(--bs-navbar-bg)!important; }
.bg-card     { background: var(--bs-card-bg)!important; }
