:root {
  --font-family-sans: 'Roboto', 'Inter', 'Noto Naskh Arabic', sans-serif;
  
  /* Light Theme - Google Material Design Inspired */
  --background-color: #f8f9fa; /* Material background */
  --surface-color: #ffffff; /* Card/component background */
  --text-color: #202124; /* Primary text */
  --text-color-secondary: #5f6368; /* Secondary text */
  --primary-color: #1a73e8; /* Google Blue */
  --primary-color-hover: #1867cf;
  --primary-color-light: #e8f0fe; /* Light blue for highlights */
  --border-color: #dadce0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --success-color: #1e8e3e;
  --danger-color: #d93025;
  --sidebar-bg: #ffffff;
  --sidebar-text: #3c4043;
  --sidebar-icon-color: #5f6368;
  --sidebar-link-hover-bg: #f1f3f4;
  --sidebar-link-active-bg: var(--primary-color-light);
  --sidebar-link-active-text: var(--primary-color);
  --main-bg: #f8f9fa;
  --content-padding: 2.5rem;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
}

[data-theme='dark'] {
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #e8eaed;
  --text-color-secondary: #9aa0a6;
  --primary-color: #8ab4f8; /* Material Blue for dark theme */
  --primary-color-hover: #9ec5ff;
  --primary-color-light: rgba(138, 180, 248, 0.12);
  --border-color: #3c4043;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --success-color: #81c995;
  --danger-color: #f28b82;
  --sidebar-bg: #1e1e1e;
  --sidebar-text: #e8eaed;
  --sidebar-icon-color: #bdc1c6;
  --sidebar-link-hover-bg: #282a2d;
  --sidebar-link-active-bg: var(--primary-color-light);
  --sidebar-link-active-text: var(--primary-color);
  --main-bg: #121212;
}

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

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

#root {
  width: 100%;
  max-width: none;
  padding: 0;
  height: 100vh;
  display: flex;
}

.card {
    background-color: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.card h2, .card h3, .card h4 {
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.card > p {
    color: var(--text-color-secondary);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-family-sans);
}

.btn:hover {
  box-shadow: 0 1px 3px 1px rgba(0,0,0,.15), 0 1px 2px 0 rgba(0,0,0,.3);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
[data-theme='dark'] .btn-primary {
    color: #202124;
}

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

.btn-google {
    background-color: #fff;
    color: #3c4043;
    border-color: #dadce0;
    font-weight: 500;
}
[data-theme='dark'] .btn-google {
    background-color: var(--primary-color);
    color: #121212;
    border-color: transparent;
}
.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
}
.btn-google i { font-size: 1.2rem; }


.loader {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  padding: 2rem;
}

.full-page-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}