/* =========================================================
   HEXAGON ASSETS - DASHBOARD WIDGET
   File: dashboard-wdiget.css
   Theme match: sidebar + topbar
   Uses icon-style.css
   No border radius
   Font size 10% smaller
   Fully responsive
   ========================================================= */

:root {
  --dc-dw-card-bg-1: #13264b;
  --dc-dw-card-bg-2: #0d1d39;
  --dc-dw-card-border: rgba(255, 255, 255, 0.08);
  --dc-dw-card-border-hover: rgba(96, 165, 250, 0.18);
  --dc-dw-text: #f8fbff;
  --dc-dw-text-soft: #c6d4ee;
  --dc-dw-text-muted: #93a7cf;
  --dc-dw-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  --dc-dw-shadow-hover: 0 20px 44px rgba(0, 0, 0, 0.32);
  --dc-dw-footer-bg: rgba(255, 255, 255, 0.045);
  --dc-dw-footer-border: rgba(255, 255, 255, 0.08);

  --dc-dw-primary-1: rgba(37, 99, 235, 0.2);
  --dc-dw-primary-2: rgba(59, 130, 246, 0.08);
  --dc-dw-primary-line: rgba(96, 165, 250, 0.34);

  --dc-dw-success-1: rgba(16, 185, 129, 0.18);
  --dc-dw-success-2: rgba(5, 150, 105, 0.08);
  --dc-dw-success-line: rgba(52, 211, 153, 0.32);

  --dc-dw-warning-1: rgba(245, 158, 11, 0.2);
  --dc-dw-warning-2: rgba(217, 119, 6, 0.08);
  --dc-dw-warning-line: rgba(251, 191, 36, 0.34);

  --dc-dw-danger-1: rgba(239, 68, 68, 0.18);
  --dc-dw-danger-2: rgba(220, 38, 38, 0.08);
  --dc-dw-danger-line: rgba(248, 113, 113, 0.34);
}

/* =========================================================
   WIDGET CARD
   ========================================================= */

.small-box {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  margin-bottom: 1rem;
  border-radius: 0 !important;
  border: 1px solid var(--dc-dw-card-border) !important;
  background: linear-gradient(
    135deg,
    var(--dc-dw-card-bg-1) 0%,
    var(--dc-dw-card-bg-2) 100%
  ) !important;
  box-shadow: var(--dc-dw-shadow);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
  isolation: isolate;
}

.small-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.08),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    );
  pointer-events: none;
  z-index: 0;
}

.small-box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
  opacity: 0.95;
}

.small-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--dc-dw-shadow-hover);
  border-color: var(--dc-dw-card-border-hover) !important;
}

/* =========================================================
   THEME COLOR VARIANTS
   ========================================================= */

.small-box.text-bg-primary {
  background:
    linear-gradient(
      135deg,
      var(--dc-dw-card-bg-1) 0%,
      var(--dc-dw-card-bg-2) 100%
    ),
    linear-gradient(135deg, var(--dc-dw-primary-1), var(--dc-dw-primary-2)) !important;
}

.small-box.text-bg-primary::after {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.small-box.text-bg-success {
  background:
    linear-gradient(
      135deg,
      var(--dc-dw-card-bg-1) 0%,
      var(--dc-dw-card-bg-2) 100%
    ),
    linear-gradient(135deg, var(--dc-dw-success-1), var(--dc-dw-success-2)) !important;
}

.small-box.text-bg-success::after {
  background: linear-gradient(90deg, #34d399, #059669);
}

.small-box.text-bg-warning {
  background:
    linear-gradient(
      135deg,
      var(--dc-dw-card-bg-1) 0%,
      var(--dc-dw-card-bg-2) 100%
    ),
    linear-gradient(135deg, var(--dc-dw-warning-1), var(--dc-dw-warning-2)) !important;
}

.small-box.text-bg-warning::after {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.small-box.text-bg-danger {
  background:
    linear-gradient(
      135deg,
      var(--dc-dw-card-bg-1) 0%,
      var(--dc-dw-card-bg-2) 100%
    ),
    linear-gradient(135deg, var(--dc-dw-danger-1), var(--dc-dw-danger-2)) !important;
}

.small-box.text-bg-danger::after {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

/* =========================================================
   INNER CONTENT
   ========================================================= */

.small-box > .inner {
  position: relative;
  z-index: 2;
  padding: 1rem 1rem 0.8rem 1rem;
}

.small-box .inner h3 {
  margin: 0 0 0.28rem 0;
  color: var(--dc-dw-text) !important;
  font-family: "Inter", "Source Sans 3", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.small-box .inner h3 sup {
  font-size: 0.78rem !important;
  top: -0.45em;
  position: relative;
}

.small-box .inner p {
  margin: 0;
  color: var(--dc-dw-text-soft) !important;
  font-family: "Inter", "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

/* =========================================================
   ICON AREA
   Uses icon-style.css classes
   ========================================================= */

.small-box .dc-widget-icon-wrap {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 2;
  pointer-events: none;
}

.small-box .dc-widget-icon-wrap .dc-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 0 !important;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.small-box .dc-widget-icon-wrap .dc-icon-box::after {
  border-radius: 0 !important;
}

.small-box .dc-widget-icon-wrap .dc-icon-box i,
.small-box .dc-widget-icon-wrap .dc-icon-box .bi,
.small-box .dc-widget-icon-wrap .dc-icon-box .ri,
.small-box .dc-widget-icon-wrap .dc-icon-box .bx {
  font-size: 1.18rem;
}

/* disable old adminlte icon */
.small-box .small-box-icon {
  display: none !important;
}

/* =========================================================
   FOOTER LINK
   ========================================================= */

.small-box .small-box-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.62rem 1rem;
  text-decoration: none !important;
  background: var(--dc-dw-footer-bg);
  border-top: 1px solid var(--dc-dw-footer-border);
  color: var(--dc-dw-text-soft) !important;
  font-family: "Inter", "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.small-box .small-box-footer:hover,
.small-box .small-box-footer:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-top-color: rgba(96, 165, 250, 0.18);
}

.small-box .small-box-footer i {
  font-size: 0.86rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.small-box .small-box-footer:hover i:last-child,
.small-box .small-box-footer:focus i:last-child {
  transform: translateX(3px);
}

/* =========================================================
   HOVER GLOW
   ========================================================= */

.small-box.text-bg-primary:hover {
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.14);
}

.small-box.text-bg-success:hover {
  box-shadow: 0 22px 44px rgba(5, 150, 105, 0.14);
}

.small-box.text-bg-warning:hover {
  box-shadow: 0 22px 44px rgba(217, 119, 6, 0.16);
}

.small-box.text-bg-danger:hover {
  box-shadow: 0 22px 44px rgba(220, 38, 38, 0.14);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
  .small-box {
    min-height: 162px;
  }

  .small-box .inner h3 {
    font-size: 1.62rem;
  }
}

@media (max-width: 991.98px) {
  .small-box {
    min-height: 154px;
  }

  .small-box > .inner {
    padding: 0.92rem 0.92rem 0.76rem 0.92rem;
  }

  .small-box .inner h3 {
    font-size: 1.48rem;
  }

  .small-box .inner p {
    font-size: 0.76rem;
  }

  .small-box .dc-widget-icon-wrap {
    top: 0.88rem;
    right: 0.88rem;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box i,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bi,
  .small-box .dc-widget-icon-wrap .dc-icon-box .ri,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bx {
    font-size: 1.06rem;
  }

  .small-box .small-box-footer {
    min-height: 40px;
    padding: 0.56rem 0.92rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .small-box {
    min-height: 145px;
    margin-bottom: 0.85rem;
  }

  .small-box .inner h3 {
    font-size: 1.34rem;
  }

  .small-box .inner p {
    max-width: calc(100% - 62px);
    font-size: 0.74rem;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box i,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bi,
  .small-box .dc-widget-icon-wrap .dc-icon-box .ri,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bx {
    font-size: 0.98rem;
  }
}

@media (max-width: 575.98px) {
  .small-box {
    min-height: 138px;
  }

  .small-box > .inner {
    padding: 0.82rem 0.82rem 0.7rem 0.82rem;
  }

  .small-box .inner h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .small-box .inner p {
    font-size: 0.71rem;
    line-height: 1.28;
    max-width: calc(100% - 54px);
  }

  .small-box .dc-widget-icon-wrap {
    top: 0.78rem;
    right: 0.78rem;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .small-box .dc-widget-icon-wrap .dc-icon-box i,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bi,
  .small-box .dc-widget-icon-wrap .dc-icon-box .ri,
  .small-box .dc-widget-icon-wrap .dc-icon-box .bx {
    font-size: 0.9rem;
  }

  .small-box .small-box-footer {
    min-height: 38px;
    padding: 0.52rem 0.82rem;
    font-size: 0.71rem;
  }

  .small-box .small-box-footer i {
    font-size: 0.78rem;
  }
}
