/* ========================================
   East Gold - 青岛东金实业有限公司
   纯原生 CSS 主题 (无任何UI框架依赖)
   ======================================== */

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-overlay .hero-content {
  color: white;
  padding: 20px;
}

.carousel-overlay .hero-content h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.carousel-overlay .hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.5);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

.product-search-box {
  margin-bottom: 25px;
}

.product-search-box input {
  max-width: 400px;
  padding: 12px 20px;
  border-radius: 25px;
  border: 2px solid var(--border);
  font-size: 1rem;
}

.product-search-box input:focus {
  border-color: var(--primary);
  outline: none;
}

.category-group {
  display: none;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
}

.level3-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  padding: 15px;
  background: var(--background);
  border-radius: 8px;
}

.level3-buttons a {
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

.level3-buttons a:hover {
  background: var(--primary);
  color: white;
}

.level3-buttons a.btn-primary {
  background: var(--primary);
  color: white;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box input {
  max-width: 300px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* CSS Variables */
:root {
  --primary: #1a5d1a;
  --primary-dark: #145214;
  --primary-light: #2d8a2d;
  --accent: #3da33d;
  --background: #e8f5e8;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border: #d4e8d4;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 70px;
}

.navbar-brand {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 30px;
}

.navbar-menu {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex: 1;
}

.navbar-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.navbar-menu {
  display: flex;
  gap: 8px;
}

.navbar-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1001;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--background);
  color: var(--primary);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-menu-sub {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px 0;
}

.dropdown-menu-sub.show {
  display: block;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 5px 15px var(--shadow-strong);
  }
  
  .navbar-menu.open {
    display: flex;
  }
  
  .navbar-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 50px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-outline-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
}

.btn-outline-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 15px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-strong);
}

.card-image {
  width: 100%;
  height: 200px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image svg {
  width: 80px;
  height: 80px;
  fill: #ccc;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.section-header {
  margin-bottom: 40px;
}

/* ========================================
   Grid Layouts
   ======================================== */
.grid {
  display: grid;
  gap: 25px;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Categories
   ======================================== */
.category-card {
  text-align: center;
  padding: 40px 20px;
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary);
}

.category-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-muted);
}

/* ========================================
   Features / Advantages
   ======================================== */
.feature-card {
  text-align: center;
  padding: 30px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--white);
}

.feature-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Product Detail
   ======================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px var(--shadow);
}

.product-main-image {
  width: 100%;
  height: 400px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image svg {
  width: 150px;
  height: 150px;
  fill: #ccc;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-moq {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.8;
}

.product-features {
  margin-bottom: 25px;
}

.product-features h5 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.product-features ul {
  display: grid;
  gap: 10px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.product-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

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

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

.form-label.required::after {
  content: ' *';
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px var(--shadow);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--background);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.contact-info-content h4 {
  color: var(--text-dark);
  margin-bottom: 5px;
}

.contact-info-content p {
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px var(--shadow);
}

.contact-form-card h3 {
  margin-bottom: 25px;
  color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer p {
  opacity: 0.85;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0.8;
}

/* ========================================
   Chat Widget - 可拖动
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  user-select: none;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-strong);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chat-toggle:active {
  cursor: grabbing;
}

.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 340px;
  height: 450px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow-strong);
  display: none;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.chat-header h5 {
  font-size: 1rem;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9f9f9;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message.bot {
  background: var(--white);
  color: var(--text-dark);
  margin-right: auto;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow);
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-footer {
  padding: 12px 15px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.chat-input-group {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-send:hover {
  background: var(--primary-dark);
}

.chat-send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========================================
   Admin Layout
   ======================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1a5d1a 0%, #0d3d0d 100%);
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

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

.admin-sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-header svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.admin-nav {
  padding: 15px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-left-color: #ffcc00;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.admin-nav-item.logout {
  color: #ffcccc;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  padding-top: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.admin-nav-item.logout:hover {
  background: rgba(255,100,100,0.3);
  color: #ff6666;
  border-left-color: #ff6666;
}

.admin-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 30px;
  background: #f5f7fa;
  min-height: 100vh;
}

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

.admin-header h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

/* Admin Cards */
.admin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px var(--shadow);
  margin-bottom: 20px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.admin-card-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-content h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--background);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f8f9fa;
}

/* Admin Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-secondary {
  background: #e9ecef;
  color: #6c757d;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-primary {
  background: var(--background);
  color: var(--primary);
}

/* Admin Actions */
.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-icon-edit {
  background: var(--background);
  color: var(--primary);
}

.btn-icon-edit:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-icon-delete {
  background: #f8d7da;
  color: #dc3545;
}

.btn-icon-delete:hover {
  background: #dc3545;
  color: var(--white);
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px var(--shadow-strong);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h1 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.login-header p {
  color: var(--text-muted);
}

.login-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ========================================
   History Timeline
   ======================================== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: 5px;
}

.timeline-content p {
  color: var(--text-muted);
}

/* ========================================
   News Grid
   ======================================== */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-image {
  height: 200px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-image svg {
  width: 60px;
  height: 60px;
  fill: #ccc;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.bg-light { background: var(--background); }
.bg-white { background: var(--white); }
.bg-primary { background: var(--primary); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.py-5 { padding-top: 60px; padding-bottom: 60px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 15px; }

.hidden { display: none; }

/* ========================================
   Loading Spinner
   ======================================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  fill: #ccc;
  margin-bottom: 20px;
}

.empty-state h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========================================
   Responsive Admin
   ======================================== */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-mobile-toggle {
    display: block !important;
  }
}

.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
}

/* ========================================
   Admin - Additional
   ======================================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.stat-content h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 20px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-card-header h3 {
  color: var(--text-dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-dark);
}

.admin-table tbody tr:hover {
  background: var(--background);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  padding: 6px 10px;
  border: none;
  background: var(--background);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-icon-delete:hover {
  background: #dc3545;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-secondary {
  background: #e9ecef;
  color: #6c757d;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* ========================================
   Login Page
   ======================================== */
.login-card {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h1 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.login-header p {
  color: var(--text-muted);
}

.login-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: #dc3545; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

.w-100 { width: 100%; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .admin-table {
    font-size: 0.85rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
}
