:root {
  /* Light Theme Variables */
  --bg-primary: #f4f7f6;
  --bg-secondary: #ffffff;
  --bg-sidebar: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --accent-color: #2e7d32; /* Vibrant green for Workshop */
  --accent-hover: #1b5e20;
  --border-color: #ecf0f1;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f1c40f;
  --info: #3498db;
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-sidebar: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #aaaaaa;
  --accent-color: #4caf50; 
  --accent-hover: #43a047;
  --border-color: #333333;
  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 12px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sidebar .brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar nav a {
  display: block;
  padding: 12px 15px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateX(5px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

/* Cards for Dashboard */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 25px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.stat-card .value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Theme Toggle */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "☀️";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(30px);
  content: "🌙";
}

/* Auth Container */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent-color);
}

/* Sidebar Submenu */
.sidebar-submenu {
  display: flex;
  flex-direction: column;
}

.submenu-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.submenu-chevron {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

[dir="rtl"] .submenu-chevron {
  margin-left: 0;
  margin-right: auto;
}

.submenu-items {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 5px;
}

[dir="rtl"] .submenu-items {
  padding-left: 0;
  padding-right: 20px;
}

.submenu-item {
  font-size: 14px !important;
  padding: 8px 12px !important;
  margin-bottom: 2px !important;
  font-weight: 500;
}

