.ad-body{
  background: #f3f6fb;
  color: #0f172a;
  min-height: 100vh;
}

.ad-card{
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.ad-link{
  color: #0f172a;
  text-decoration: none;
}
.ad-link:hover{ color:#0d6efd; }

.ap-layout{
  display: flex;
  min-height: 100vh;
}

.ap-sidebar{
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1rem;
}

.ap-brand{
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: #0d6efd;
  margin-bottom: 1rem;
}
.ap-brand i{
  font-size: 1.2rem;
}

.ap-nav{
  display: grid;
  gap: .25rem;
}

.ap-nav a{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: .6rem;
  color: #0f172a;
  font-weight: 600;
}

.ap-nav a i{
  width: 1.1rem;
  color: #64748b;
}

.ap-nav a:hover{
  background: #f1f5f9;
}

.ap-nav a.active{
  background: #e9efff;
  color: #0d6efd;
}
.ap-nav a.active i{
  color: #0d6efd;
}

.ap-sidebar-section{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.ap-main{
  flex: 1;
  min-width: 0;
}

.ap-topbar{
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: .9rem 1.25rem;
}

.ap-content{
  padding: 1.25rem;
}

.ap-page-title{
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.ap-stat{
  border-radius: .75rem;
  color: #ffffff;
  border: 0;
  overflow: hidden;
  position: relative;
}

.ap-stat .ap-stat-body{
  padding: 1.1rem 1.1rem .95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ap-stat .ap-stat-title{
  font-size: .75rem;
  opacity: .9;
  font-weight: 800;
  letter-spacing: .4px;
}

.ap-stat .ap-stat-value{
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  margin-top: .15rem;
}

.ap-stat .ap-stat-icon{
  font-size: 2.1rem;
  opacity: .35;
}

.ap-stat .ap-stat-foot{
  padding: .6rem 1.1rem;
  background: rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: .85rem;
}

.ap-stat.primary{ background: #0d6efd; }
.ap-stat.success{ background: #198754; }
.ap-stat.warning{ background: #ffc107; color:#0f172a; }
.ap-stat.warning .ap-stat-foot{ background: rgba(0,0,0,.06); }
.ap-stat.info{ background: #0dcaf0; color:#0f172a; }
.ap-stat.info .ap-stat-foot{ background: rgba(0,0,0,.06); }

@media (max-width: 991.98px){
  .ap-sidebar{ width: 240px; }
}

@media (max-width: 767.98px){
  .ap-layout{ flex-direction: column; }
  .ap-sidebar{ width: 100%; border-right: 0; border-bottom: 1px solid #e2e8f0; }
}
