:root {
  --gradient-1: #ff7e5f;
  --gradient-2: #feb47b;
  --gradient-3: #86a8e7;
  --gradient-4: #91eac9;
  --accent-gradient: linear-gradient(
    115deg,
    var(--gradient-1) 0%,
    var(--gradient-2) 35%,
    var(--gradient-3) 65%,
    var(--gradient-4) 100%
  );
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow-xl: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 16px 40px 0 rgba(0, 0, 0, 0.2);
}

body {
  min-height: 100vh;
  background: linear-gradient(120deg, #13151a 0%, #232946 100%);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 1.5rem 40px;
  min-height: 100vh;
}

.hero-title {
  text-align: center;
  margin: 4rem 0 3rem;
  position: relative;
  z-index: 2;
}

.hero-gradient {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background-image: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300%;
  animation: gradientFlow 10s ease-in-out infinite;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.16),
    0 1px 1px rgba(140, 130, 255, 0.07);
  filter: brightness(1.1);
}

.subtitle {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(50, 50, 80, 0.12);
}

.intro-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-radius: 22px;
  padding: 2.75rem;
  margin: 3rem auto 2rem;
  max-width: 820px;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.46, 1.47),
    box-shadow 0.3s cubic-bezier(0.32, 0.72, 0.46, 1.47);
  z-index: 1;
}

.intro-card:hover,
.intro-card:focus-within {
  transform: translateY(-8px) scale(1.025);
  box-shadow: var(--shadow-hover);
}

.glow-effect {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background: radial-gradient(
    800px circle at var(--x, 50%) var(--y, 50%),
    rgba(134, 168, 231, 0.15),
    transparent 60%
  );
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.intro-card:hover .glow-effect,
.intro-card:focus-within .glow-effect {
  opacity: 1;
}

.intro-text {
  font-size: clamp(1.07rem, 2.5vw, 1.33rem);
  line-height: 1.74;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 1220px;
}

.card-grid > * {
  background: var(--glass-bg);
  border-radius: 18px;
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  color: #fff;
  transition: box-shadow 0.24s, transform 0.23s;
  will-change: transform;
}
.card-grid > *:hover,
.card-grid > *:focus-within {
  box-shadow: 0 16px 32px 0 rgba(134, 168, 231, 0.19);
  transform: translateY(-6px) scale(1.02);
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    padding: 1.5rem;
    margin-top: 60px;
  }
  .intro-card {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    margin: 2rem 0 1.2rem;
  }
  .intro-card {
    border-radius: 16px;
  }
  .intro-text {
    font-size: 1rem;
  }
  .card-grid {
    gap: 1.2rem;
    padding: 1.2rem 0;
  }
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

.main-container {
  display: flex;
  justify-content: center;
  padding: 2rem;
  height: 100%;
  padding: 10%;
}

.dashboard {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: auto;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar {
  width: 250px;
  height: auto;
  padding: 1.5rem;
  background-color: #2a2a2a;
  border-right: 1px solid #333;
}

.sidebar h2 {
  color: #ba6573;
  margin-bottom: 1.5rem;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 0.8rem;
}

.sidebar nav ul li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 4px;
  display: block;
  transition: all 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li.active a {
  background-color: #ba6573;
  color: #121212;
}

.main-content {
  flex: 1;
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: #ba6573;
  margin-bottom: 0.5rem;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.summary-card {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.summary-card.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: loading 1.5s infinite;
}

.summary-card.error {
  background: #5c2a2a;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.chart-container {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plugin-card {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.plugin-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
    height: 100%;
    margin-top: 20%;
    padding: 3%;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #333;
  }
}
