/* === CUSTOM STYLE FOR EXAM SYSTEM === */

/* General */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8fafc;
  color: #333;
}

/* Buttons */
.btn-exam-type {
  font-size: 1.1rem;
  padding: 10px 24px;
  margin: 6px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.btn-exam-type:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

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

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1f2937;
}

.card-text {
  color: #6b7280;
  font-size: 0.95rem;
  min-height: 50px;
}

/* Tabs */
.nav-tabs .nav-link {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 20px 20px 0 0;
  color: #555;
}

.nav-tabs .nav-link.active {
  background-color: #e2e8f0;
  color: #000;
  font-weight: 600;
}

/* Section Headings */
h2, h3 {
  font-weight: 600;
  color: #1f2937;
}

/* Gradient Button */
.btn-gradient {
  background: linear-gradient(90deg, #36d1c4 0%, #5b86e5 100%);
  color: #fff;
  transition: 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
}

/* Notification Bell */
.notification-bell {
  position: relative;
}

.notification-bell .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-exam-type {
    width: 90%;
    margin-bottom: 10px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}


/* ✅ Flip Card Style based on Codepen */
.flip {
  position: relative;
  width: 100%;
  min-height: 260px;
  perspective: 1000px;
}
.flip > .front, .flip > .back {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease, opacity 0.6s ease;
  backface-visibility: hidden;
  border-radius: 12px;
}
.flip > .front {
  transform: rotateY(0deg);
  z-index: 2;
}
.flip > .back {
  transform: rotateY(-180deg);
  opacity: 0;
  background-color: #d1e7dd;
}
.flip.flipped > .front {
  transform: rotateY(180deg);
}
.flip.flipped > .back {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 3;
}
