
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
}

body {
  min-height: 100vh;
  background: #0a0a0a;
  overflow: hidden;
}

.landscape {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.grid {
  position: absolute;
  width: 400%;
  height: 400%;
  background: 
    linear-gradient(rgba(33, 150, 243, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.2) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(75deg) translateZ(-200px) translate(-50%, -50%);
  animation: moveGrid 30s linear infinite;
  opacity: 0.4;
}

.cityscape {
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: -20%;
  left: -50%;
  transform: rotateX(60deg) translateZ(-50px);
  display: flex;
  justify-content: space-around;
  gap: 5px;
  animation: shiftCity 30s linear infinite;
}

.building {
  width: 20px;
  height: var(--height);
  background: linear-gradient(to top, rgba(33, 150, 243, 0.4), rgba(33, 150, 243, 0.1));
  position: relative;
  animation: pulse 4s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

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

@keyframes shiftCity {
  0% { transform: rotateX(60deg) translateZ(-50px) translateX(0); }
  100% { transform: rotateX(60deg) translateZ(-50px) translateX(-50%); }
}

@keyframes moveGrid {
  0% { transform: rotateX(60deg) translateZ(-100px) translateX(0); }
  100% { transform: rotateX(60deg) translateZ(-100px) translateX(-40px); }
}

.login-container {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(33, 150, 243, 0.1);
  width: 300px;
}

.login-box h2 {
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.login-box button:hover {
  background: #1976d2;
}

.dashboard {
  display: none;
  position: relative;
  z-index: 10;
  height: 100vh;
  color: white;
  grid-template-columns: 200px 1fr;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard.visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  backdrop-filter: blur(10px);
}

.nav-item {
  padding: 15px 20px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-item:hover, .nav-item.active {
  background: rgba(33, 150, 243, 0.2);
}

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

.page {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.stats-grid, .analytics-grid, .content-grid, .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card, .analytics-card, .content-card, .settings-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before, 
.analytics-card::before, 
.content-card::before, 
.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.stat-card:hover::before,
.analytics-card:hover::before,
.content-card:hover::before,
.settings-card:hover::before {
  left: 100%;
}

.stat-card:hover,
.analytics-card:hover,
.content-card:hover,
.settings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.1);
}

.stat-card p {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
  background: linear-gradient(45deg, #2196f3, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chart-container {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  height: 300px;
  border: 1px solid rgba(33, 150, 243, 0.2);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
}

.chart-container:hover {
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 0 30px rgba(33, 150, 243, 0.2);
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

h3 {
  color: #2196f3;
  margin-bottom: 15px;
}
