/* === Enhanced Minimal Aesthetic Theme (Datamex Edition 2025) === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Lobster&display=swap');

body, .body-home, .body-login {
  background: linear-gradient(180deg, #f9fafc 0%, #f3f4f7 100%);
  font-family: 'Poppins', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.welcome-text {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  padding: 80px 20px;
}

.hero-content {
  max-width: 700px;
}

.hero-logo {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hero-content h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1rem;
  color: #666;
}

/* ===== About Section ===== */
.about-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.about-text p {
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(90deg, #800000, #a00000);
  border: none;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #a00000, #800000);
  box-shadow: 0 4px 10px rgba(128,0,0,0.3);
}

/* ===== Fade Animation ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: background 0.3s ease;
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.95);
}

.nav-link {
  color: #444 !important;
  font-weight: 500;
  margin: 0 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #800000;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #800000 !important;
}

/* ===== Dashboard ===== */
.dashboard-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  animation: fadeIn 0.8s ease forwards;
}

/* ===== Title ===== */
.dashboard-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: #222;
  margin-bottom: 45px;
  letter-spacing: 0.5px;
  position: relative;
}

.dashboard-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #800000, #a00000);
  border-radius: 2px;
}

/* ===== Admin Dashboard Grid ===== */
.admin .dashboard-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
    gap: 28px;
    padding: 20px;
}

/* ===== Registrar Dashboard Grid ===== */
.registrar .dashboard-grid {
    display: grid;
    grid-template-rows: repeat(1, 1fr); /* 1 row */
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 28px;
    padding: 20px;
}

/* ===== Dashboard Card (shared style) ===== */
.dashboard-card {
  background: linear-gradient(145deg, #08308f, #05255f);
  border-radius: 16px;
  padding: 40px 25px;
  text-align: center;
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dashboard-card:hover::before {
  opacity: 1;
}

/* ===== Hover Effects ===== */
.dashboard-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  filter: brightness(1.08);
  color: #4b0000; /* text color on hover */
}

/* ===== Text & Icons ===== */
.card-icon {
  font-size: 48px;
  color: #fff;
  margin-bottom: 18px;
  opacity: 0.9;
  transition: transform 0.4s ease, color 0.4s ease;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.15);
  color: #4b0000; /* icon color on hover */
}

.dashboard-card h5 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  transition: color 0.4s ease;
}

.dashboard-card p {
  font-size: 14px;
  color: #f0f0f0;
  opacity: 0.9;
  transition: color 0.4s ease;
}

.dashboard-card:hover h5,
.dashboard-card:hover p {
  color: #800000; /* text color on hover */
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on smaller screens */
  }
}

@media screen and (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
  }
}

@media screen and (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
  }
}


/* ===== Fade Animation ===== */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons & Links ===== */
a, a:hover, a:focus, .btn, .dashboard-card {
  text-decoration: none !important;
  outline: none !important;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 0 25px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 26px;
  }
  .dashboard-card {
    padding: 30px 20px;
  }
  .card-icon {
    font-size: 40px;
  }
}
