/* Adminox Modern Admin Dashboard CSS */
:root {
  --admin-primary: #3b5998;
  --admin-primary-rgb: 59, 89, 152;
  --admin-sidebar-bg: #2b303a;
  --admin-sidebar-color: #9097a7;
  --admin-topbar-bg: #ffffff;
  --admin-body-bg: #f5f6f8;
  --admin-card-bg: #ffffff;
}

body {
  background-color: var(--admin-body-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #505458;
  font-size: 0.9rem;
  overflow-x: hidden;
}

.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Sidenav */
.app-sidebar-menu {
  width: 250px;
  background-color: var(--admin-sidebar-bg);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.06), 0 1px 0 0 rgba(0, 0, 0, 0.02);
}

.app-sidebar-menu .logo-box {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #242932;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-sidebar-menu .logo-box h4 {
  color: #ffffff;
  font-weight: 700;
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.side-nav {
  padding: 20px 0;
  list-style: none;
  margin: 0;
}

.side-nav-title {
  padding: 10px 25px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 1px;
}

.side-nav-item {
  margin: 2px 0;
}

.side-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  color: var(--admin-sidebar-color);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.side-nav-link i {
  font-size: 1.25rem;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.side-nav-link:hover,
.side-nav-item.active .side-nav-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: #02c0ce;
}

.side-nav-link .badge {
  margin-left: auto;
}

/* Topbar */
.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 250px;
  height: 70px;
  background: var(--admin-topbar-bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.15);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Page Content */
.page-content {
  margin-left: 250px;
  padding-top: 90px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container {
  padding: 0 30px;
  flex: 1;
}

.page-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.page-title-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #313a46;
  margin: 0;
}

/* Cards & Widgets */
.card {
  background-color: var(--admin-card-bg);
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 35px 0 rgba(154, 161, 171, 0.08);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 5px 25px 0 rgba(154, 161, 171, 0.15);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid #f1f3fa;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
}

.card-body {
  padding: 24px;
}

.widget-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Buttons & Badges */
.btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-primary {
  background-color: #02c0ce;
  border-color: #02c0ce;
  color: #fff;
}

.btn-primary:hover {
  background-color: #02a3b0;
  border-color: #02a3b0;
}

/* Tables */
.table {
  color: #505458;
}

.table th {
  font-weight: 600;
  color: #313a46;
  border-top: none;
  background-color: #f8f9fa;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
}

/* Footer */
.app-footer {
  margin-left: 250px;
  background-color: #ffffff;
  border-top: 1px solid #f1f3fa;
  padding: 18px 30px;
  font-size: 0.85rem;
  color: #98a6ad;
}

/* Responsive */
@media (max-width: 991px) {
  .app-sidebar-menu {
    transform: translateX(-100%);
  }
  .app-sidebar-menu.show {
    transform: translateX(0);
  }
  .app-topbar,
  .page-content,
  .app-footer {
    margin-left: 0;
    left: 0;
  }
}
