/* Main Variables */
:root {
  /* Marawa Colors (Minang Identity) */
  --minang-red: #c62828;
  /* Deeper, richer red */
  --minang-black: #000000;
  /* Pure black for contrast */
  --minang-yellow: #fdd835;
  /* Gold-like yellow */

  /* Theme Colors */
  --primary-color: #c62828;
  --primary-gradient: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
  --secondary-color: #fdd835;
  --bg-color: #050505;
  /* Ultra dark background */
  --card-bg: rgba(20, 20, 20, 0.6);
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --border-color: rgba(255, 255, 255, 0.08);
  /* More subtle border */

  --success-color: #10b981;
  --danger-color: #ef4444;

  --font-family: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  /* Added for headings */

  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --glass-blur: blur(20px);

  /* Smooth Marawa Gradient for glows */
  --marawa-glow: linear-gradient(90deg, #c62828, #fdd835);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--minang-red);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  /* Use Serif for main headings */
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

/* Components: Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--minang-red);
  color: white;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
}

.btn-primary:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--minang-yellow);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 4px rgba(253, 216, 53, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Auth Page Specifics */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: #050505;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(198, 40, 40, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(253, 216, 53, 0.05), transparent 25%);
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--minang-yellow);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}