:root {
  --primary-color: #2e2357;
  --secondary-color: #ffcf5d;
  --accent-color: #ffcf5d;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-gray: #f8fafc;
  --medium-gray: #6b7280;
  --dark-gray: #374151;
  --sidebar-bg: #2e2357;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

[data-theme="dark"] {
  --primary-color: #2d3748;
  --light-gray: #1a202c;
  --medium-gray: #a0aec0;
  --dark-gray: #e2e8f0;
  --white: #2d3748;
  --border-color: #4a5568;
}

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

body {
  background: linear-gradient(135deg,
      var(--light-gray) 0%,
      var(--white) 100%);
  color: var(--dark-gray);
  min-height: 100vh;
  font-family: "Google Sans", sans-serif;
}

p,
strong,
address,
small,
blockquote,
.nav-link,
div,
h1,
h2,
h3,
h4,
h5,
h6,
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-family: "Google Sans", sans-serif;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.mobile {
  transform: translateX(-100%);
}

.sidebar.mobile.show {
  transform: translateX(0);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.sidebar.collapsed .sidebar-logo span {
  display: none;
}

.sidebar-nav {
  padding: 24px 0;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white;
  background: var(--secondary-color);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
}

.sidebar.collapsed .nav-link span {
  display: none;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.main-content.expanded {
  margin-left: 70px;
}

/* Top Navigation */
.top-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: background 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--light-gray);
}

.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--medium-gray);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
}

.nav-icon:hover {
  color: var(--dark-gray);
  background: var(--light-gray);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--danger-color);
  border-radius: 50%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: background 0.3s ease;
}

.user-profile:hover {
  background: var(--light-gray);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
  padding: 24px;
}

.alert {
  font-size: 13px;
}

.btn-main-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  position: relative;
}

.btn-main-primary:hover {
  color: #ffffff !important;
  z-index: 1;
}

.btn-main-primary::before {
  position: absolute;
  content: '';
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
  top: 0;
  left: 0;
  transition: width 0.3s ease-in-out;
}

.btn-main-primary:hover::before {
  width: 100%;
  z-index: -1;
}

.loader {
  width: 25px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid lightblue;
  border-right-color: orange;
  animation: l2 1s infinite linear;
}

@keyframes l2 {
  to {
    transform: rotate(1turn)
  }
}

.score {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  margin: auto;
}

.green {
  background: #0cce6b
}

.orange {
  background: #ffa400
}

.red {
  background: #ff4e42
}