:root {
  /* Colors */
  --bg-sidebar: #fbfbfa;
  --bg-main: #fcfcfc;
  --text-primary: #1a1a1a;
  --text-secondary: #787774;
  --border-color: rgba(55, 53, 47, 0.09);
  --hover-bg: rgba(55, 53, 47, 0.08);
  
  --dark-card-bg: #1e1e1e;
  --dark-card-text: #ffffff;
  --dark-card-subtext: #999999;
  
  /* Layout */
  --sidebar-width: 260px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
}

/* Icons */
.icon-xs { width: 12px; height: 12px; stroke-width: 2.5; display: inline-block; vertical-align: middle; margin-top: -2px; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2.5; }
.icon-md { width: 20px; height: 20px; color: var(--text-secondary); cursor: pointer; transition: 0.2s ease;}
.icon-md:hover { color: var(--text-primary); }

/* --- SIDEBAR --- */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header { padding: 12px 14px; }
.workspace-switcher {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.workspace-switcher:hover { background: var(--hover-bg); }
.workspace-icon {
  width: 24px; height: 24px; background: #333; border-radius: 4px; color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.workspace-name { display: flex; flex-direction: column; flex: 1; }
.workspace-name span:first-child { font-weight: 600; font-size: 14px; }
.workspace-plan { font-size: 11px; color: var(--text-secondary); }

.sidebar-content { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-group { margin-bottom: 16px; }
.nav-group-title { padding: 0 14px; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px; margin: 2px 8px; border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--text-primary); transition: background 0.1s ease-in;
}
.nav-item:hover, .nav-item.active { background: var(--hover-bg); font-weight: 500; }

/* --- MAIN CONTENT & NEW TOPBAR --- */
.main-content {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative;
}

.new-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.lang-gb { font-size: 12px; margin-right: 2px; }

.topbar-icon {
  color: #333;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.profile-pic-square {
  width: 36px;
  height: 36px;
  background: #eee;
  overflow: hidden;
  /* Ensure it's perfectly square per request */
  border-radius: 0;
}
.profile-pic-square img { width: 100%; height: 100%; object-fit: cover; }

.profile-info { display: flex; flex-direction: column; justify-content: center; }
.profile-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px;}
.profile-role { font-size: 11px; color: var(--text-secondary); }

/* --- HOME DASHBOARD --- */
.page-container {
  flex: 1; overflow-y: auto; padding: 48px;
}

.home-dashboard { max-width: 1200px; margin: 0 auto; }

.welcome-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.welcome-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- INFINITE CAROUSEL WITH DARK CARDS --- */
.carousel-wrapper {
  overflow: hidden;
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-right: -48px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: slide 30s linear infinite;
  padding: 10px 48px;
}
.carousel-track:hover { animation-play-state: paused; }

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* Dark Card Styling (Based on screenshot) */
.dark-card {
  width: 380px;
  height: 160px;
  flex-shrink: 0;
  background: var(--dark-card-bg);
  border-radius: 20px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.dark-card:hover { transform: translateY(-4px); }

/* Left side perfectly square photo */
.dark-card-img-square {
  width: 140px;
  height: 100%;
  background: #2a2a2a;
  border-radius: 0; /* Perfectly square/rectangle */
  flex-shrink: 0;
  overflow: hidden;
}

.dark-card-img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the image fill the square */
  display: block;
}

.dark-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Badges */
.dark-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.08); /* fallback */
}
.badge-gold { color: #facc15; background: rgba(250, 204, 21, 0.1); }
.badge-blue { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.badge-purple { color: #c084fc; background: rgba(192, 132, 252, 0.1); }

.dark-card-name {
  color: var(--dark-card-text);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.dark-card-stats {
  color: var(--dark-card-subtext);
  font-size: 13px;
}
