:root {
  --skeleton-base: #2b2b2b;
  --skeleton-highlight: #3e3e3e;
  --skeleton-radius: 0.6rem;
  --skeleton-animation: shimmer 1.2s infinite linear;
    /* for the  */
  --skeleton-base-light: #e0e0e0;   /* Base fill color */
  --skeleton-highlight-light: #f5f5f5; /* Shimmer highlight */
  --skeleton-border: #dcdcdc; /* Optional: light border/divider */
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#app-loader {
  position: fixed;
  inset: 0;
  background: var(--brand-dark);
  color: var(--brand-white);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: sans-serif;
}

.skeleton {
  border-radius: var(--skeleton-radius, 8px);
  background: linear-gradient(
    90deg,
    var(--skeleton-base, #2b2b2b) 25%,
    var(--skeleton-highlight, #3e3e3e) 50%,
    var(--skeleton-base, #2b2b2b) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Header */
.skeleton-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #333;
}

.skeleton-logo {
  width: 120px;
  height: 30px;
}

.skeleton-nav-links {
  display: flex;
  gap: 2rem;
}

.skeleton-nav-link {
  width: 80px;
  height: 20px;
}

.skeleton-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.skeleton-searchbar {
  width: 160px;
  height: 30px;
}

.skeleton-search-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* Body */
.skeleton-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.skeleton-sidebar {
  width: 220px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid #333;
}

/* Each sidebar tab */
.skeleton-tab {
  width: 100%;
  height: 20px;
}

/* Main content */
.skeleton-main {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-main-line {
  width: 30%;
  height: 20px;
}

.skeleton-main-line.short {
  width: 20%;
}

.skeleton-main-box {
  width: 100%;
  height: 180px;
}

.skeleton-main-box.wide {
  height: 240px;
}

/* Skeleton card base */
.skeleton-card {
  /* background: linear-gradient(90deg, #2b2b2b 25%, #3a3a3a 50%, #2b2b2b 75%); */
  background: linear-gradient(90deg, var(--skeleton-base-light) 25%, var(--skeleton-highlight-light) 50%, var(--skeleton-base-light) 75%);
  background-size: 200% 100%;
  border-radius: 1rem;
  padding: 1.5rem;
}

.skeleton-animate {
  animation: shimmer 1.5s infinite linear;
}

/* Fade-in for content */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Main skeleton grid */
.skeleton__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem;
}

/* Column formatting */
.skeleton-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skeleton-animate {
  animation: shimmer 1.5s infinite linear;
}

/* Elements inside cards */
.skeleton-title {
  width: 50%;
  height: 20px;
  background-color: #3b3b3b;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.skeleton-text {
  width: 100%;
  height: 12px;
  background-color: #3b3b3b;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-chart {
  height: 120px;
  background-color: #3b3b3b;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.skeleton-divider {
  width: 100%;
  height: 1px;
  background-color: #444;
  margin: 1rem 0;
}

.skeleton-button {
  width: 80%;
  height: 36px;
  background-color: #3b3b3b;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.skeleton-button.full {
  width: 100%;
}




