/* =====================================================
   UniFi Access — overrides on top of PlainAdmin
   ===================================================== */

/* ---- Sidebar logo ---- */
.app-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.app-logo-icon {
  color: #3b82f6;
  flex-shrink: 0;
}
.app-logo-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
}

/* ---- Avatar letter (replaces profile image) ---- */
.avatar-letter {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-letter-lg {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}
/* Inside PlainAdmin's .lead-image (50×50 circle) */
.lead-image .avatar-letter {
  width: 50px;
  height: 50px;
  font-size: 1.15rem;
}

/* ---- Profile dropdown author-info tweak ---- */
.dropdown-menu .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.dropdown-menu .author-info .content h4 {
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 4px;
}

/* ---- Login page ---- */
.login-body {
  background: #f5f7fa;
  overflow-x: hidden;
}
.login-outer {
  min-height: 100vh;
}
.login-cover-panel {
  width: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.login-cover-content {
  color: #fff;
  max-width: 420px;
}
.login-cover-logo {
  opacity: .9;
}
.login-cover-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.login-cover-subtitle {
  font-size: 1rem;
  opacity: .8;
  line-height: 1.6;
}
.login-feature {
  font-size: .95rem;
  opacity: .85;
  margin-bottom: .5rem;
}
.login-feature i {
  color: #86efac;
}
.login-form-panel {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
}

/* ---- Stat cards ---- */
.stat-card {
  border-radius: .75rem;
  transition: transform .15s, box-shadow .15s;
  border: none;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Table fixes ----
   PlainAdmin's main.css sets padding: 15px 0 (zero horizontal padding) and
   removes the bottom border on the last row. These rules restore proper spacing.
*/
.table > :not(caption) > * > * {
  padding: .65rem 1rem !important;
}
.table tbody tr:first-child > * {
  padding-top: .65rem !important;
}
.table tbody tr:last-child > * {
  border-bottom-color: var(--bs-border-color, #dee2e6) !important;
  padding-bottom: .65rem !important;
}
.table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* ---- Alert icon alignment ---- */
.alert i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---- Utility: page content top spacing ---- */
.page-content {
  padding-top: 20px;
}

/* ---- Form fields inside Bootstrap grid: let gutter handle spacing ---- */
.row > [class*="col"] > .input-style-1,
.row > [class*="col"] > .select-style-1 {
  margin-bottom: 0;
}

/* ---- card-style spacing helpers ---- */
.mb-10 { margin-bottom: 10px; }
.mb-25 { margin-bottom: 25px; }
