.admin-layout {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.modern-admin-navbar {
  width: 300px;
  background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1000;
}

.nav-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.nav-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e94560, #c81d25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.nav-avatar i {
  font-size: 40px;
  color: white;
}

.nav-user-info h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
}

.nav-user-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

.nav-menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin: 3px 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateX(5px);
  text-decoration: none;
}

.nav-item-active {
  background: linear-gradient(135deg, #e94560, #c81d25);
  color: white;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.nav-item-active .nav-indicator {
  background: white;
  transform: scale(1);
}

.nav-item-logout {
  margin-top: auto;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.nav-item-logout:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.nav-icon {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.nav-item-active .nav-icon {
  background: rgba(255,255,255,0.2);
}

.nav-icon i {
  font-size: 16px;
}

.nav-text {
  flex: 1;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-indicator {
  width: 6px;
  height: 6px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: scale(0);
}

.nav-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.nav-version {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 300;
}

.nav-version i {
  color: #e94560;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.content-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-left: 5px solid #e94560;
}

.content-header h1 {
  color: #1a1a2e;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
}

.content-header h1::before {
  content: '👑';
  margin-right: 15px;
  font-size: 3rem;
}

.content-body {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

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

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.stat-card.users {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.products {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.orders {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.revenue {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

.quick-actions {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quick-actions h2 {
  color: #1a1a2e;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.quick-actions h2::before {
  content: '⚡';
  margin-right: 10px;
  font-size: 2rem;
}

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

.action-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.action-btn::before {
  margin-right: 10px;
  font-size: 1.2rem;
}

.action-btn.users::before { content: '👥'; }
.action-btn.products::before { content: '📦'; }
.action-btn.orders::before { content: '🛒'; }
.action-btn.cms::before { content: '✏️'; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .modern-admin-navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .nav-header {
    padding: 20px;
  }
  
  .nav-avatar {
    width: 60px;
    height: 60px;
  }
  
  .nav-avatar i {
    font-size: 30px;
  }
  
  .nav-menu {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 10px;
  }
  
  .nav-item {
    min-width: 140px;
    margin: 0;
    flex-direction: column;
    text-align: center;
    padding: 12px 8px;
  }
  
  .nav-icon {
    margin: 0 0 6px 0;
  }
  
  .nav-text {
    font-size: 0.8rem;
  }
  
  .nav-footer {
    display: none;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .content-header {
    padding: 20px;
  }
  
  .content-header h1 {
    font-size: 2rem;
  }
  
  .content-body,
  .quick-actions {
    padding: 20px;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

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

.nav-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}

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