:root {
  --bg: #f7f9fc;
  --text: #0f172a;
  --text-muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --radius: 14px;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
}

/*------------ BEGIN: Header Styles ------------*/
  .header-container {
    display: grid !important;
    grid-template-columns: 60px 1fr 140px !important;
    align-items: center;
    padding: 10px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header-center { text-align: center; }
  .header-right { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }

  .logo { font-size: 1.2rem; font-weight: 800; }
  .logo-accent { color: var(--blue); }

  .login-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
  }
/*------------ END: Header Styles ------------*/


/*------------ BEGIN: Footer Styles ------------*/
  .footer-container {
    margin-top: 40px;
    padding: 24px 16px;
    border-top: 1px solid var(--border);
    background: var(--card);
  }
  .footer-content {
    max-width: 620px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 16px;
  }
  .footer-link:hover { color: var(--blue); }

  @media (max-width: 480px) {
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
    .footer-link { margin: 0 8px; }
  }
/*------------ END: Footer Styles ------------*/


/*------------ BEGIN: Navigation Styles ------------*/
  /* 1. The Floating Sidebar */
  .nav-sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background-color: #ffffff !important; /* Force white background */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
    padding: 24px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column !important;
  }

  .nav-sidebar.open { transform: translateX(0); }

  /* 2. Header Section */
  .nav-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 32px;
  }

  .nav-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a !important; /* Force dark text */
  }

  .nav-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
  }

  /* 3. The List & Links */
  .nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.2s;
    /* This ensures the text is visible */
    color: #334155 !important;
  }

  .nav-label {
    font-weight: 600;
    font-size: 0.95rem;
  }

  .nav-icon {
    margin-right: 14px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
  }

  /* States */
  .nav-link:hover {
    background: #f8fafc;
    color: #2563eb !important;
  }

  .nav-link.nav-active {
    background: #eff6ff !important;
    color: #2563eb !important;
  }

  /* Overlay Background */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9998;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
/*------------ END: Navigation Styles ------------*/


/*------------ BEGIN: Body Common Styles ------------*/
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container { padding: 16px; max-width: 100%; margin: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
/*------------ END: Body Common Styles ------------*/



/*------------ BEGIN: Market Status Card Styles ------------*/
.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.trade-signal {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--blue);
}

.indicator-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
/*------------ END: Market Status Card Styles ------------*/



/*------------ BEGIN: Commodity Cards Styles ------------*/
.comm-card {
	text-align: center;
	padding: 12px;
	background: white;
	border: 1px solid var(--border);
	border-radius: 12px;
}
.comm-name {
	font-weight: 700;
	font-size: 0.85rem;
}
.comm-impact {
	font-size: 0.75rem;
	color: var(--text-muted);
}
/*------------ END: Commodity Cards Styles ------------*/


