/*
* bsnl-sidebar.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 38px;
  height: 20px;
}

.app-brand-text.demo {
  font-size: 1.25rem;
  letter-spacing: 0.15px;
}

.authentication-wrapper .app-brand-text.demo {
  text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 300px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}
/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1.25rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1.25rem;
}

/*
* BSNL EB dashboard visual refresh
******************************************************************************/ 

:root {
  --bsnl-ink: #17264b;
  --bsnl-muted: #62708d;
  --bsnl-line: rgba(49, 41, 91, 0.14);
  --bsnl-lavender: #c6b9eb;
  --bsnl-lavender-light: #eee9ff;
  --bsnl-blue: #0a5cc4;
  --bsnl-orange: #ff8a3d;
  --bsnl-card-shadow: 0 1rem 2rem rgba(54, 44, 111, 0.14), 0 0.25rem 0.65rem rgba(12, 31, 67, 0.08);
}

body {
  color: var(--bsnl-ink);
  background:
    radial-gradient(circle at 2% 0%, rgba(255, 138, 61, 0.18) 0, rgba(255, 138, 61, 0) 18rem),
    radial-gradient(circle at 92% 6%, rgba(198, 185, 235, 0.48) 0, rgba(198, 185, 235, 0) 24rem),
    linear-gradient(145deg, #f7f9ff 0%, #f2efff 48%, #edf5ff 100%) !important;
}

.layout-wrapper,
.layout-container,
.layout-page,
.content-wrapper {
  background: transparent !important;
}

.container-p-y {
  padding-top: 1.75rem !important;
}

.layout-menu {
  margin: 1rem 0 1rem 1rem;
  height: calc(100vh - 2rem) !important;
  border: 1px solid rgba(33, 29, 60, 0.2);
  border-radius: 1.2rem;
  color: var(--bsnl-ink);
  background:
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 10rem),
    linear-gradient(160deg, rgba(238, 233, 255, 0.96) 0%, rgba(216, 207, 245, 0.95) 46%, rgba(244, 247, 255, 0.96) 100%) !important;
  box-shadow:
    0.85rem 0 2.3rem rgba(53, 43, 100, 0.16),
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(54, 44, 101, 0.08);
}

.menu .app-brand.demo {
  height: 76px;
  padding-inline: 1rem;
}

.app-brand-logo.demo img {
  height: 38px !important;
  width: 38px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0.7rem 1.3rem rgba(255, 112, 43, 0.2);
}

.app-brand-text.demo {
  color: var(--bsnl-ink);
  font-weight: 800 !important;
  letter-spacing: 0;
}

.menu-inner {
  padding-inline: 0.65rem !important;
}

.menu .menu-link {
  margin: 0.18rem 0;
  border-radius: 0.75rem;
  color: #34415f;
  font-weight: 650;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.menu .menu-link:hover {
  color: var(--bsnl-blue);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transform: translateX(2px);
}

.menu .menu-item.active > .menu-link,
.menu .menu-item.open > .menu-link.menu-toggle {
  color: #fff;
  background: linear-gradient(180deg, #7d75ff 0%, #1764ca 100%);
  box-shadow: 0 0.85rem 1.4rem rgba(37, 87, 196, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.menu .menu-icon {
  color: currentColor;
}

.menu-sub .menu-link {
  color: #52607d;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.28);
}

.layout-navbar,
.bg-navbar-theme {
  margin: 1rem 1rem 0;
  border: 1px solid rgba(33, 29, 60, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: 0 0.85rem 1.8rem rgba(54, 44, 111, 0.1);
  backdrop-filter: blur(14px);
}

.layout-page .container-xxl > .container-xxl {
  max-width: none;
  padding: 0;
}

.container-xxl h4,
.container-xxl h5 {
  color: var(--bsnl-ink);
  letter-spacing: 0;
}

.container-xxl h4.fw-bold {
  font-size: 1.65rem;
  font-weight: 800 !important;
}

.text-muted {
  color: var(--bsnl-muted) !important;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(61, 50, 105, 0.12) !important;
  border-radius: 0.85rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 255, 0.94)) !important;
  box-shadow: var(--bsnl-card-shadow) !important;
}

.row.g-4.mb-4 > [class*="col-"] > .card {
  min-height: 6rem;
  overflow: hidden;
}

.row.g-4.mb-4 > [class*="col-"] > .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.12), rgba(255, 138, 61, 0) 8rem),
    linear-gradient(90deg, rgba(198, 185, 235, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.card-body,
.card-header {
  position: relative;
  z-index: 1;
}

.card h5.mb-0 {
  color: var(--bsnl-ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.avatar {
  width: 3rem;
  height: 3rem;
}

.avatar .avatar-initial {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 0.65rem 1rem rgba(49, 41, 91, 0.12);
}

.bg-label-danger {
  color: #d83d4a !important;
  background: linear-gradient(145deg, #ffe4e6, #ffd5da) !important;
}

.bg-label-warning {
  color: #b76d00 !important;
  background: linear-gradient(145deg, #fff4d7, #ffe5ad) !important;
}

.bg-label-success {
  color: #20864d !important;
  background: linear-gradient(145deg, #e3f9e8, #c9f0d7) !important;
}

.bg-label-info {
  color: #0a6799 !important;
  background: linear-gradient(145deg, #dff6ff, #ccefff) !important;
}

.btn-primary {
  border: 0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #176dd2 0%, #0752ae 100%) !important;
  box-shadow: 0 0.85rem 1.15rem rgba(7, 84, 182, 0.22);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 1.35rem rgba(7, 84, 182, 0.28);
}

.nav-tabs-shadow,
.tab-content {
  border-radius: 0.9rem;
}

.nav-tabs {
  overflow: hidden;
  border: 1px solid var(--bsnl-line);
  border-bottom: 0;
  border-radius: 0.9rem 0.9rem 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.nav-tabs .nav-link {
  color: #485674;
  font-weight: 750;
}

.nav-tabs .nav-link.active {
  color: var(--bsnl-blue) !important;
  background: linear-gradient(180deg, rgba(238, 233, 255, 0.92), rgba(255, 255, 255, 0.95)) !important;
  box-shadow: inset 0 -3px 0 #176dd2;
}

.tab-content {
  border: 1px solid var(--bsnl-line);
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--bsnl-card-shadow);
}

.card-header {
  border-bottom: 1px solid rgba(61, 50, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 246, 255, 0.86));
  font-weight: 800;
}

.table {
  color: #34415f;
}

.table thead th {
  color: #3d4865;
  border-bottom: 0;
  background: linear-gradient(180deg, #f5f2ff 0%, #ece8fb 100%) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.86);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(246, 243, 255, 0.58);
}

.badge.bg-label-danger {
  color: #c83342 !important;
  background: #ffe3e7 !important;
}

@media (max-width: 1199.98px) {
  .layout-menu {
    margin: 0;
    height: 100vh !important;
    border-radius: 0;
  }

  .layout-navbar,
  .bg-navbar-theme {
    margin: 0.75rem 0.75rem 0;
  }
}
