/* Dashboard Styles - uses --navbar-height from globals.css */

/* Navbar */
body.has-sidebar .navbar {
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  max-height: var(--navbar-height);
}

body.has-sidebar .navbar-brand {
  min-height: var(--navbar-height);
}

.main-content {
  flex: 1;
  min-height: calc(100vh - var(--navbar-height));
}

.dashboard-section {
  padding: 2rem;
}

/* Dashboard navbar on mobile - ensure proper alignment */
@media screen and (max-width: 1023px) {
  body.has-sidebar .navbar-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.has-sidebar .mobile-sidebar-toggle {
    margin-left: 0.5rem;
    margin-right: 0;
    order: -1;
  }

  body.has-sidebar .navbar-brand .navbar-item {
    margin-left: 0;
    padding-left: 0.25rem;
  }

  body.has-sidebar .navbar-brand-end {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   Profile
   ========================================================================== */

/* ==========================================================================
   End Profile
   ========================================================================== */

/* ==========================================================================
   Account / Team Members
   ========================================================================== */



.member-card:last-child {
  margin-bottom: 0 !important;
}

.member-card .member-avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
}

.member-card .member-info {
  min-width: 0;
}

.member-card .member-info p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card .role-form {
  margin: 0;
}

/* Responsive adjustments for member cards */
@media screen and (max-width: 768px) {
  .member-card .is-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .member-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .member-info p {
    white-space: normal;
  }
}

/* ==========================================================================
    End Account / Team Members
    ========================================================================== */

/* Admin Stats Boxes - Light mode */
.box.stat-box-info {
  background-color: #eff5fb;
  color: #296fa8;
}

.box.stat-box-danger {
  background-color: #feecf0;
  color: #cc0f35;
}

.box.stat-box-warning {
  background-color: #fffaeb;
  color: #946c00;
}

.box.stat-box-success {
  background-color: #effaf5;
  color: #257953;
}
.box.stat-box-primary {
  background-color: #f3f0ff;
  color: #6b46c1;
}

/* Admin Stats Boxes - Dark mode */
[data-theme="dark"] .box.stat-box-info {
  background-color: #1a3a52;
  color: #8fc4e8;
  border-color: #8fc4e8;
}

[data-theme="dark"] .box.stat-box-danger {
  background-color: #4a1e28;
  color: #ff6b8a;
  border-color: #ff6b8a;
}

[data-theme="dark"] .box.stat-box-warning {
  background-color: #4a3a1a;
  color: #ffe08a;
  border-color: #ffe08a;
}

[data-theme="dark"] .box.stat-box-success {
  background-color: #1a4a2e;
  color: #72dda4;
  border-color: #72dda4;
}

[data-theme="dark"] .box.stat-box-primary {
  background-color: #2d1b4e;
  color: #a78bfa;
  border-color: #a78bfa;
}

/* Ensure text is readable in stat boxes */
.box.stat-box-info .heading,
.box.stat-box-danger .heading,
.box.stat-box-warning .heading,
.box.stat-box-success .heading {
  opacity: 0.8;
}

[data-theme="dark"] .box.stat-box-info .title,
[data-theme="dark"] .box.stat-box-danger .title,
[data-theme="dark"] .box.stat-box-warning .title,
[data-theme="dark"] .box.stat-box-success .title {
  color: inherit;
}

/* Clickable stat boxes */
.clickable-stat-box {
  text-decoration: none;
  display: block;
}

.clickable-stat-box .box {
  cursor: pointer;
}

/* Country dropdown */
.country-dropdown-menu .dropdown-content {
  max-height: 450px;
  overflow-y: auto;
}

.country-dropdown .dropdown-menu {
  display: flex;
  width: 100%;
}

.country-dropdown-menu .dropdown-item {
  font-size: 1.1rem;
}

.country-dropdown .button > span {
  font-size: 1.1rem;
}

.country-dropdown .dropdown-trigger {
  display: flex;
  width: 100%;
}

div.dropdown.country-dropdown {
  display: flex;
  width: 100%;
}

.country-dropdown .dropdown-trigger .button {
  flex: 1;
  width: 100%;
  min-width: 0;
  text-align: left;
  justify-content: flex-start;
}
