/* GLOBAL SETTINGS */
:root {
  --primary: #2e7d32;
  --primary-light: #e8f5e9;
  --dark: #263238;
  --muted: #607d8b;
  --bg-main: #f4f6f7;
  --bg-card: #ffffff;
  --sidebar-width: 260px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Hind', sans-serif;
  background-color: var(--bg-main);
  color: var(--dark);
  overflow-x: hidden;
  display: flex;
}

/* SIDEBAR LAYOUT */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-card);
  position: fixed;
  left: 0; top: 0;
  border-right: 1px solid #e2e8f0;
  transition: var(--transition);
  z-index: 1000;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
}

.brand-text {
  color: var(--primary);
}

.brand-icon {
  font-size: 1.5rem;
}

.sidebar-menu {
  padding: 16px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.menu-item i {
  font-size: 1.2rem;
}

.menu-item:hover, .menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* MAIN VIEWPORT */
.main-wrapper {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  transition: var(--transition);
}

.main-wrapper.expanded {
  margin-left: 0;
  width: 100%;
}

/* HEADER NAVIGATION */
.top-header {
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  padding: 4px;
}

/* RUNNING TICKER MARQUEE */
.marquee-container {
  flex: 1;
  margin: 0 32px;
  overflow: hidden;
  background: var(--primary-light);
  padding: 8px 16px;
  border-radius: 30px;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scrollTicker 30s linear infinite;
}

.marquee-track {
  display: flex;
  gap: 60px;
  padding-right: 60px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.marquee-track i {
  margin-right: 4px;
}

@keyframes scrollTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* LANGUAGE PICKER */
.lang-switcher {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* PANELS & COMPONENT GRIDS */
.content-container {
  padding: 32px;
}

.content-section {
  display: none;
}

.content-section.active-section {
  display: block;
}

.content-section h2 {
  color: var(--dark);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 32px;
}

.stats-grid, .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.stat-card, .info-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.card-icon {
  font-size: 2.2rem;
  color: var(--primary);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
}

.card-large {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  line-height: 1.75;
}

.avatar-placeholder {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.role-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 16px;
}

/* PRODUCT CARDS SETUP */
.product-card {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-card h3 {
  color: var(--dark);
}

.product-image-wrapper {
  width: 100%;
  height: 160px;            /* Clean downsized height frame */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* Ensures graphic scales cleanly inside its box frame */
}

.product-pricing {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.9rem;
  color: var(--dark);
}

.product-pricing p {
  margin-bottom: 6px;
}

/* LIGHTBOX INTERACTIVE OVERLAY */
.product-lightbox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.6); /* Semi-transparent dimming backdrop overlay */
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.product-lightbox-overlay.active-view {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  background: var(--bg-card); /* Bright clean background card panel */
  padding: 24px;
  border-radius: 16px;
  max-width: 460px;         /* Compact downsized window scale */
  width: 90%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 12px; right: 16px;
  background: none; 
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close-btn:hover {
  color: var(--dark);
}

.lightbox-media-wrapper {
  width: 100%;
  height: 200px;            /* Clean height matching structural constraints */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-top: 16px;
}

.lightbox-media-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* Handles full layout image downsizing cleanly */
}

.lightbox-caption-text {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);       /* Dark slate text for flawless white card contrast reading */
  text-align: center;
  line-height: 1.6;
  padding: 0 8px;
}

/* SYSTEM SCREEN RESPONSIVENESS */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-show {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }
  .top-header {
    padding: 0 16px;
  }
  .marquee-container {
    display: none;
  }
}

.avatar-circle-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;

  margin-bottom: 10px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.committee-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
