:root {
  /* Color Palette - Study Focused (Indigo/Slate) */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Light Theme Variables */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-active: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-bn: "Noto Sans Bengali", sans-serif;
}

/* Removed Dark Theme */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}

/* Typography Utilities */
.bn-text,
.bn-title {
  font-family: var(--font-bn);
}

.text-primary-accent {
  color: var(--primary);
}

.bg-light-accent {
  background-color: var(--primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-main);
}

/* Base Layout styling */
.main-layout {
  height: 100vh;
  padding-top: 60px; /* offset for navbar */
}

.sidebar {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 0;
  transition: background-color 0.3s;
}

.main-content {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* View Switcher */
.view-switcher-container {
  z-index: 100;
}

.btn-pill {
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  cursor: pointer;
}

.btn-pill:hover {
  color: var(--primary);
  background: var(--bg-surface-hover);
}

.btn-check:checked + .btn-pill {
  background-color: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.x-small {
  font-size: 0.7rem;
}
