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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f9fafb;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 24px;
  font-size: 26px;
  font-weight: bold;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header::before {
  content: "🏛️";
  font-size: 32px;
}

.nav {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  font-weight: 500;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: white;
  border-radius: 0 4px 4px 0;
  transition: height 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  padding-left: 16px;
}

.nav-item:hover::before {
  height: 60%;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(4px);
  padding-left: 16px;
}

.nav-item.active::before {
  height: 80%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  transform: scale(1.1);
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Main Content */
.main {
  flex: 1;
  overflow-y: auto;
  background: #f9fafb;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-avatar {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
  border-radius: 8px;
  overflow: hidden;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-title h1 {
  font-size: 36px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.header-title p {
  font-size: 18px;
  color: #6b7280;
}

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-nav a {
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.header-nav a::before {
  font-size: 16px;
}

.header-nav a:hover {
  color: #1e3a8a;
  background: #e0e7ff;
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-nav a.active {
  color: white;
  background: #1e3a8a;
  border-color: #1e3a8a;
}

.header-nav-icon {
  font-size: 18px;
}

.notification-btn {
  position: relative;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.notification-btn:hover {
  background: #e0e7ff;
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dashboard Content */
.content {
  padding: 32px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.breadcrumb-home {
  color: #1e3a8a;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-home:hover {
  color: #1e40af;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #6b7280;
  font-weight: 600;
}

.dashboard-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-section.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
}

.section-header {
  font-size: 28px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1e3a8a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header::before {
  content: '▶';
  font-size: 20px;
  color: #1e3a8a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
}

/* Leadership Items */
.leadership-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.leadership-item:hover {
  background: #f3f4f6;
}

.leadership-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.leadership-icon {
  width: 32px;
  height: 32px;
  background: #dbeafe;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.leadership-text {
  font-size: 14px;
  font-weight: 500;
}

.leadership-badge {
  font-size: 12px;
  color: #6b7280;
  background: #e5e7eb;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Progress Bars */
.progress-item {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

/* Charts */
.chart-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.donut-chart {
  position: relative;
  width: 192px;
  height: 192px;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: #1f2937;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 150px;
  position: relative;
}

.map-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

.map-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
}

/* Feedback circles */
.feedback-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.feedback-chart {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.feedback-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: bold;
  color: #1f2937;
}

.feedback-items {
  flex: 1;
}

.feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feedback-badge {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-align: center;
  padding: 8px;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.stat {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #1f2937;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
}

/* Line chart */
.line-chart {
  width: 100%;
  height: 150px;
  margin-top: 16px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Additional styles for new functionality */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #1e3a8a;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  transition: color 0.2s;
}

.close:hover {
  color: #1f2937;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: #1e3a8a;
  color: white;
}

.btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #1f2937;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.filter-btn.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.export-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.export-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #6b7280;
}

.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Form Styles */
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
}

form input[type="text"],
form input[type="date"],
form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

form input[type="text"]:focus,
form input[type="date"]:focus,
form select:focus {
  outline: none;
  border-color: #1e3a8a;
}

/* Help and Profile Content */
.help-content,
.profile-content {
  padding: 8px;
}

.help-content kbd,
.profile-content kbd {
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #d1d5db;
}

.profile-content .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    width: 220px;
  }
  
  .header-title h1 {
    font-size: 28px;
  }
  
  .header-title p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  .header {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-left {
    flex-direction: column;
    text-align: center;
  }
  
  .content {
    padding: 16px;
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 20px;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
}

.pagination-btn:hover:not(:disabled) {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
  font-weight: bold;
}

.pagination-info {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.pagination-dots {
  padding: 8px 4px;
  color: #6b7280;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.items-per-page select {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background: white;
  transition: border-color 0.2s;
}

.items-per-page select:focus {
  outline: none;
  border-color: #1e3a8a;
}

.items-per-page select:hover {
  border-color: #9ca3af;
}

/* Paginable List Styles */
.paginable-list {
  min-height: 300px;
}

.paginable-list .list-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.paginable-list .list-item.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.paginable-list .list-item.fade-in {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav Section Dividers */
.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* Collapsible Nav Items */
.nav-item-collapsible {
  position: relative;
}

.nav-item-collapsible::after {
  content: '▼';
  position: absolute;
  right: 12px;
  font-size: 10px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.nav-item-collapsible.collapsed::after {
  transform: rotate(-90deg);
}

.nav-subitems {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 28px;
}

.nav-subitems.collapsed {
  max-height: 0;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.nav-subitem:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.nav-subitem::before {
  content: '•';
  font-size: 18px;
  opacity: 0.6;
}
