/* ================================================
   1. ROOT VARIABLES (Studio Black)
   ================================================ */
:root {
  --color-primary: #5a189a;
  --color-secondary: #ffc300;
  --color-background: #f4f7f9;
  --color-text: #333333;
  --color-soft-gray: #6b7280;
  --color-light-gray: #e5e7eb;

  --bg-body: var(--color-background);
  --bg-glass-card: #ffffff;
  --border-color: #e0e0e0;
  --shadow-glass: 0 8px 30px rgba(90, 24, 154, 0.05);

  --font-family-sans: 'Poppins', sans-serif;
}

body.dark {
  --bg-body: #050505;
  --bg-glass-card: #141414; 
  --color-text: #ffffff;
  --color-soft-gray: #a3a3a3;
  --border-color: #3c096c; 
  --color-secondary: #ffd60a;
}

/* ================================================
   2. GLOBAL LAYOUT (FIXED)
   ================================================ */
/* THIS WAS MISSING - FIXES THE MOVING AROUND */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden; /* Prevents side-to-side scrolling */
  width: 100%;
}

body {
  font-family: var(--font-family-sans);
  background: var(--bg-body);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Header */
header {
  padding: 20px;
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
}
.header-title { 
    margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--color-primary);
}
body.dark .header-title { color: var(--color-text); }

/* Main Content */
.main-container {
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px; /* Limits width so it doesn't look stretched on tablets */
}

/* === PROFESSIONAL GLASS MENU ITEMS === */
.more-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 18px 20px;
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%; /* Ensures it stays within container */
}

/* Hover Effect */
.more-option-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(90, 24, 154, 0.1); 
}
body.dark .more-option-item:hover { 
    border-color: var(--color-secondary); 
    background-color: #1f1f1f;
}

/* Left side (Icon + Text) */
.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.more-option-item .icon {
  font-size: 1.3rem;
  color: var(--color-primary);
  width: 30px;
  text-align: center;
}
body.dark .more-option-item .icon { color: var(--color-secondary); }

.more-option-item span {
  font-size: 1rem;
  font-weight: 600;
}

/* Right side (Chevron) */
.chevron {
    font-size: 1.2rem;
    color: var(--color-soft-gray);
    font-weight: 300;
}

.version-info {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-soft-gray);
  margin-top: 30px;
  opacity: 0.7;
}

/* Universal Bottom Nav */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; border-top: 1px solid #e0e0e0;
    display: flex; justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); z-index: 1000;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.bottom-nav .nav-item {
    font-size: 1em; cursor: pointer; display: flex; flex-direction: column; align-items: center;
    transition: color 0.3s ease; padding: 5px 0; color: #8a8a8a;
}
.bottom-nav .nav-item i { font-size: 20px; margin-bottom: 4px; }
.bottom-nav .nav-item span { font-size: 0.7em; margin-top: 3px; font-weight: 500; }
.bottom-nav .nav-item.active { color: var(--color-primary); }

body.dark .bottom-nav { background: #141414; border-top: 1px solid #333; }
body.dark .bottom-nav .nav-item { color: #888; }
body.dark .bottom-nav .nav-item.active { color: var(--color-secondary); }

/* Desktop Sidebar */
@media (min-width: 1024px) {
  .bottom-nav {
    top: 0; left: 0; bottom: auto; width: 250px; height: 100vh;
    flex-direction: column; justify-content: flex-start; padding-top: 120px; gap: 30px;
    border-top: none; border-right: 1px solid var(--border-color);
  }
  .bottom-nav .nav-item { flex-direction: row; padding: 15px 40px; gap: 15px; }
  .bottom-nav .nav-item span { margin: 0; font-size: 1em; }
  .main-container { margin-left: 290px; align-items: flex-start; padding-top: 40px; }
  header { margin-left: 290px; text-align: left; padding-left: 40px; }
}
