:root {
  /* Primary Colors */
  --primary: #004d2c;
  --primary-dark: #00361f;
  --primary-light: #0c8c4d;
  
  /* Neutral Colors */
  --bg: #f8faf9;
  --sidebar-bg: #004d2c;
  --card: #ffffff;
  --border: #e5e7eb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --white: #ffffff;
  
  /* Icon Box Colors - Unified Theme */
  --box-bg: #eaf5ef;
  --box-icon: #004d2c;

  /* Spacing & Radius */
  --radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  line-height: 1.5;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  color: var(--white);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  transition: opacity 0.2s ease;
}

.logo-container:hover {
  opacity: 0.9;
}

.logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin: 2rem 0 1rem 1rem;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 500;
}

.nav-item i,
.nav-item svg,
.nav-item .sidebar-icon-custom {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-icon-custom {
  opacity: 0.7;
}

.quick-link-icon-custom {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* Filter to convert white icon to #004d2c */
  filter: brightness(0) saturate(100%) invert(18%) sepia(88%) saturate(1478%) hue-rotate(121deg) brightness(94%) contrast(105%);
}

.icon-no-filter {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Main Content Styling */
.main-content {
  margin-left: 280px;
  flex: 1;
  padding: 3rem 4rem;
  width: calc(100% - 280px);
}

.welcome-banner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem 4.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeIn 0.8s ease-out;
}

.welcome-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nbi-logo-svg {
  width: 100%;
  max-width: 720px;
  height: auto;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 77, 44, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-text {
  flex: 1;
}

.welcome-text h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.initiative-desc {
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 850px; /* Slightly wider to better fill 16:9 space */
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.credits {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}


/* Dashboard Grid */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  animation: slideUp 0.8s ease-out;
}

.dashboard-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem 2rem 2rem 2rem; /* Increased top padding to accommodate badge */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Status Indicators */
.status-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-online {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b98133;
}

.status-online .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

.status-coming-soon {
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #f43f5e33;
}

.status-coming-soon .status-dot {
  background-color: #f43f5e;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  background-color: var(--box-bg);
}

.dashboard-card:hover .icon-box {
  transform: scale(1.05);
}

.icon-box i {
  color: var(--box-icon);
  width: 32px;
  height: 32px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quick Links Styling */
.quick-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  animation: slideUp 1s ease-out;
}

.quick-link-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.quick-link-card:hover {
  background-color: #f9fafb;
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.quick-link-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--box-bg);
  color: var(--box-icon);
}

.quick-link-icon i,
.quick-link-icon svg,
.quick-link-icon .quick-link-icon-custom {
  width: 28px;
  height: 28px;
}

.quick-link-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.quick-link-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
    padding: 2rem 0.75rem;
  }
  .logo-text, .nav-label, .nav-item span {
    display: none;
  }
  .main-content {
    margin-left: 80px;
    padding: 2rem;
    width: calc(100% - 80px);
  }
  .logo-container {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .welcome-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2.5rem;
    gap: 2rem;
  }
  .welcome-text h1 {
    font-size: 2.25rem;
  }
  .initiative-desc {
    max-width: 100%;
  }
  .welcome-logo img {
    width: 140px;
  }
}

@media (max-width: 640px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
  }
  .main-content {
    margin-left: 0;
    padding: 1.5rem;
    width: 100%;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
