:root {
  --bg-primary: #0f1923; /* Valorant Dark Blue */
  --bg-secondary: #1f2937;
  --bg-card: #2a3441;
  --accent-red: #ff4655; /* Valorant Red */
  --text-primary: #ece8e1; /* Valorant Off-white */
  --text-secondary: #8b97a3;
  --success: #10b981;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-red);
  padding-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 70, 85, 0.1);
  color: var(--accent-red);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2.5rem 3rem;
  overflow-y: auto;
}

.header {
  margin-bottom: 2.5rem;
}

.header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--text-secondary);
}

/* Dashboard Modules */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 85, 0.3);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-trend {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Insights Panel */
.insights-panel {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 70, 85, 0.05) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 70, 85, 0.2);
}

.insights-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  padding: 1.2rem;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px;
  border-left: 3px solid var(--accent-red);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.insight-icon {
  font-size: 1.4rem;
}

.insight-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.insight-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.placeholder-view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    padding-bottom: 70px; /* Space for bottom nav */
  }

  /* Transform Sidebar into Bottom Bar */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 0;
    justify-content: space-around;
    background-color: var(--bg-primary);
  }

  .sidebar-header {
    display: none; /* Hide logo on mobile */
  }

  .nav-menu {
    flex-direction: row;
    width: 100%;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
  }

  .nav-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }

  .nav-item {
    flex-direction: column;
    padding: 0.5rem 0.2rem;
    gap: 4px;
    border-radius: 0;
    flex: 0 0 auto;
    min-width: 75px;
    justify-content: center;
  }

  .nav-item span {
    font-size: 0.65rem;
    text-align: center;
    white-space: nowrap;
    display: block;
  }

  .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .main-content {
    padding: 1.5rem 1rem;
    height: calc(100vh - 70px);
  }

  .header {
    margin-bottom: 1.5rem;
  }

  .header h2 {
    font-size: 1.5rem;
  }

  /* Make grid 1 column on mobile */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.2rem;
  }
}

