:root{
  --bamboo-colors-primary: #07775D;
  --bamboo-colors-secondary: #00A239;
  --bamboo-colors-bg-green: #0CCD9D;
  --bamboo-colors-bg-light: #FCFCFC;
  --bamboo-colors-bg-dark: #232323;
  --bamboo-colors-bg-main: #FCFCFC;
  --bamboo-colors-bg-gray: #F8F8F8;
  --bamboo-colors-bg-white: #FFFFFF;
  --bamboo-light-btn: #E6FF55;

  --card-radius: 14px;
  --glass: rgba(255,255,255,0.7);
  --muted: #6c757d;
  --success: #16A34A;
  --danger: #DC3545;
  --shadow: 0 8px 30px rgba(15,23,42,0.08);
}

@font-face {
  font-family: 'InterLatin';
  src: url('../fonts/inter-latin-400-normal.woff2') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'HafferXHMedium';
  src: url('../fonts/HafferXH-Medium.woff2') format('opentype');
  font-weight: 400;
  font-style: medium;
}

@font-face {
  font-family: 'HafferXHBold';
  src: url('../fonts/HafferXH-Bold.woff2') format('opentype');
  font-weight: 800;
  font-style: bold;
}

body{
  background: linear-gradient(180deg, var(--bamboo-colors-bg-main) 0%, #F6FBF8 100%);
  min-height:100vh;
  color:#1f2933;
  font-family: 'InterLatin', sans-serif;
}

h1, h2, h3 {
  font-family: 'HafferXHBold', sans-serif;
}

h4, h5, h6 {
  font-family: 'HafferXHMedium', sans-serif;
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, var(--bamboo-colors-primary), #055a48);
  color: white;
  padding: 1.6rem 1rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.sidebar .brand {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding-bottom:.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand .logo {
  width:44px;
  height:44px;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  box-shadow: var(--shadow);
  padding: 5px;
}

.brand .logo img {
  width: 100%;
}
.nav-link-sidebar {
  color: rgba(255,255,255,0.95);
  padding:.6rem .75rem;
  border-radius:10px;
  display:flex;
  gap:.75rem;
  align-items:center;
  margin-bottom:.35rem;
  transition: all .12s ease;
  text-decoration: none;
}

.nav-link-sidebar:hover{
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
  text-decoration:none;
  color:#fff;
}

.active{
  background: rgba(0,0,0,0.08);
  transform: translateY(-1px);
  text-decoration:none;
  color:#fff;
}

/* Main content */
.main {
  margin-left: 280px;
  padding: 28px;
}

.card-modern {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,250,0.9));
}

.stat {
  font-size:1.45rem;
  font-weight:700;
  color:#0f1724;
  font-family: 'HafferXHMedium', sans-serif;
}
.muted {
  color:var(--muted);
  font-size:.9rem;
}

/* quick trade */
.trade-card {
  background: linear-gradient(135deg, rgba(7,119,93,0.06), rgba(12,204,157,0.04));
  border-radius: 12px;
  padding: 1rem;
}
.btn-bamboo {
  background: #00A239;
  border: none;
  color: white;
  box-shadow: 0 6px 18px rgba(7,119,93,0.18);
  border-radius: 10px;
}

.btn-bamboo:hover {
  background: #07775D;
  color: white;
}

.btn-bamboo-outline{
  background: transparent;
  color: var(--bamboo-colors-primary);
  border: 1px solid rgba(7,119,93,0.12);
  border-radius: 10px;
}

/* tables */
.table thead th { border-bottom: none; color: #6b7280; font-weight:600; font-size:.86rem; }
.table tbody tr:hover {
  background:#F9FFFC;
}

/* responsive adjustments */
@media (max-width: 991px){
  .sidebar { position: relative; width:100%; height:auto; flex-direction:row; gap:.6rem; padding:.9rem; align-items:center; }
  .main { margin-left:0; padding:16px; }
}

/* little badges */
.pill {
  font-weight:600;
  padding:0.2rem .6rem;
  border-radius:999px;
  font-size:.78rem;
}

/* small helpers */
.muted-sm { color:#8a8f95; font-size:.85rem; }
.company-name {
  font-weight:700;
  font-size:1rem;
  letter-spacing:.2px;
  font-family: 'HafferXHMedium', sans-serif;
}
.card-compact { padding:1rem; }
.card-hover {
  transition: all 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}
