/* 
   upGrad EMS - Global Styles
 */

/* ---------- Base ---------- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

/* ---------- Navbar ---------- */
.navbar-brand {
  letter-spacing: -0.3px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.min-vh-50 {
  min-height: 50vh;
}

.stat-card {
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}

.hero-graphic .bi-display {
  font-size: 8rem;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  border-radius: 2px;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* ---------- Event Cards (Home & Admin) ---------- */
.event-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.15);
}

.event-card .card-header {
  border-bottom: none;
  padding: 1rem 1.25rem 0.5rem;
}

.category-badge {
  font-size: 0.72rem;
  padding: 0.3em 0.75em;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.category-tech {
  background-color: #e7f3ff;
  color: #0d6efd;
}

.category-industrial {
  background-color: #fff3cd;
  color: #856404;
}

.event-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.event-meta i {
  color: #0d6efd;
  width: 18px;
}

/* ---------- Feature Cards (Home) ---------- */
.feature-card {
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-icon {
  display: flex;
  justify-content: center;
}

/* ---------- Login Page ---------- */
.card.rounded-4 {
  overflow: hidden;
}

/* ---------- Register Page ---------- */
#event-info-card {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* ---------- Contact Page ---------- */
.contact-icon-wrap {
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Events Page (Admin) ---------- */
.delete-btn {
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a58ca, #084298);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 576px) {
  .hero-section h1.display-4 {
    font-size: 2rem;
  }
  .hero-graphic .bi-display {
    font-size: 5rem;
  }
}
