/* Unified Theme Styles */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --success-color: #4cc9f0;
  --info-color: #4895ef;
  --warning-color: #f72585;
  --danger-color: #e63946;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* Layout Wrapper */
.layout-wrapper {
  display: block;
  min-height: 100vh;
}

.main-content {
  padding: 30px;
  min-height: calc(100vh - 70px);
  margin-left: 0 !important;
  width: 100% !important;
}

.sidebar { display: none !important; }

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.sidebar-logo { max-height: 50px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 15px 10px;
}

.menu-section {
  margin-bottom: 10px;
}

.menu-section-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  color: #666;
  transition: var(--transition);
}

.menu-section-header:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.menu-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.menu-section-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.menu-section.expanded .menu-section-arrow {
  transform: rotate(180deg);
}

.menu-section-content {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
}

.menu-section.expanded .menu-section-content {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  text-decoration: none;
  color: #555;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 2px;
  transition: var(--transition);
}

.menu-item:hover {
  background: #f0f3ff;
  color: var(--primary-color);
}

.menu-item.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.menu-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 15px 0;
}

.menu-subheader {
  padding: 5px 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Page Components */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0 !important; width: 100% !important; }
}