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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}


.admin-container {
  display: flex;
  min-height: 100vh;
}


.sidebar {
  width: 280px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: white;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
}

.logo-section {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #2d3748;
}

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

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
}

.logo-subtitle {
  font-size: 12px;
  color: #2d3748;
  margin-top: 2px;
}

.nav-section {
  padding: 20px 0;
}

.nav-group {
  margin-bottom: 30px;
}

.nav-group-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px 12px 20px;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

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

.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #ffeaa7;
  color: white;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

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


.main-wrapper {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.top-header {
  background: white;
  padding: 16px 32px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.breadcrumb {
  font-size: 14px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #a0aec0;
  z-index: 1;
}

.search-input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  width: 250px;
  background: #f7fafc;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #d4af37;
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: #f7fafc;
}

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

.user-profile:hover {
  background: #f7fafc;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

.user-role {
  font-size: 12px;
  color: #718096;
}


.content-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.page-container {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.stat-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 12px;
  color: white;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
}


.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.chart-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-placeholder {
  background: #f7fafc;
  padding: 60px 20px;
  text-align: center;
  color: #718096;
  border-radius: 8px;
  border: 2px dashed #e2e8f0;
  font-style: italic;
}


.dark-theme {
  background-color: #1a202c;
  color: #e2e8f0;
}

.dark-theme .sidebar {
  background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
}

.dark-theme .top-header {
  background: #2d3748;
  border-bottom-color: #4a5568;
}

.dark-theme .page-title {
  color: #e2e8f0;
}

.dark-theme .breadcrumb {
  color: #a0aec0;
}

.dark-theme .search-input {
  background: #4a5568;
  border-color: #6b7280;
  color: #e2e8f0;
}

.dark-theme .search-input:focus {
  background: #374151;
  border-color: #d4af37;
}

.dark-theme .theme-toggle:hover {
  background: #4a5568;
}

.dark-theme .user-profile:hover {
  background: #4a5568;
}

.dark-theme .user-name {
  color: #e2e8f0;
}

.dark-theme .user-role {
  color: #a0aec0;
}

.dark-theme .stat-card,
.dark-theme .chart-card {
  background: #2d3748;
  border-color: #4a5568;
}

.dark-theme .stat-number {
  color: #e2e8f0;
}

.dark-theme .stat-label {
  color: #a0aec0;
}

.dark-theme .chart-title {
  color: #e2e8f0;
}

.dark-theme .chart-placeholder {
  background: #4a5568;
  color: #a0aec0;
  border-color: #6b7280;
}


@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .content-area {
    padding: 20px;
  }

  .top-header {
    padding: 12px 20px;
  }

  .search-input {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .header-right {
    gap: 12px;
  }

  .search-input {
    width: 150px;
  }

  .user-info {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 24px;
  }
}
