/* ======== Global Reset ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* ===== UI MICRO-INTERACTIONS ===== */
a, button, .card, .btn, input, .form-control {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(57, 173, 229, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.form-control:focus {
  transform: scale(1.01);
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== END UI MICRO-INTERACTIONS ===== */

/* ======== Navbar ======== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: large;
  gap: 0.4rem;
  font-weight: 600;
  color: #39ade5;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover,
.navbar .logo:hover {
  transform: none !important;
}

.navbar .btn-primary {
  background-color: #39ade5;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.navbar .btn-primary:hover {
  background-color: #2d9ad0;
}

/* Account Dropdown */
.btn-account {
  background-color: #39ade5;
  border: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-account:hover,
.btn-account:focus,
.btn-account:active,
.btn-account.show {
  background-color: #2d9ad0 !important;
  border: none !important;
  box-shadow: none !important;
}

.account-dropdown-menu {
  min-width: 180px;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 6px 0;
}

.account-dropdown-menu .dropdown-item {
  padding: 8px 18px;
  font-size: 0.9rem;
  color: #333;
  border-radius: 6px;
  margin: 1px 6px;
  width: auto;
}

.account-dropdown-menu .dropdown-item:hover {
  background-color: #f0f8ff;
  color: #39ade5;
}

.account-dropdown-menu .dropdown-divider {
  margin: 4px 12px;
}

/* ======== Sidebar ======== */
.list-group-item {
  border: none;
  padding: 15px 18px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.list-group-item:hover {
  background-color: #f5f8ff;
}

.list-group-item.active {
  background-color: #39ade5;
  color: #fff;
  font-weight: 600;
}

/* ======== Cards & Layout ======== */
.card {
  border-radius: 10px;
  border: none;
}

.card-body {
  font-size: 0.95rem;
}

h4 {
  color: #222;
}

.text-primary {
  color: #39ade5 !important;
}

/* ======== Form Styling ======== */
form label {
  font-weight: 500;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #39ade5;
  box-shadow: 0 0 0 0.2rem rgba(57, 173, 229, 0.25);
}

/* ======== Buttons ======== */
.btn-primary {
  background-color: #39ade5;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #2d9ad0;
}

/* ======== Footer ======== */
footer {
  border-top: 1px solid #eee;
}

footer h6 {
  color: #333;
  font-weight: 600;
}

footer a {
  text-decoration: none;
  color: #666;
}

footer a:hover {
  text-decoration: underline;
}

/* ======== Sign Up Card ======== */
.card.rounded-4 {
  border-radius: 16px !important;
}

.card .form-check-label a {
  color: #39ade5;
}

.card .form-check-label a:hover {
  text-decoration: underline;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .list-group-item {
    text-align: center;
  }

  .navbar .btn-primary {
    width: 100%;
  }

  .card-body {
    text-align: center;
  }
}