.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(64, 124, 135, 0.3);
}

.user-profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(64, 124, 135, 0.15);
  min-width: 180px;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.user-profile-menu.active {
  display: flex;
}

.profile-menu-item {
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  color: var(--dark);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--ease);
  font-size: 0.95rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-menu-item:hover {
  background: linear-gradient(135deg, rgba(64, 124, 135, 0.1), rgba(165, 219, 221, 0.1));
  color: var(--primary);
}

.logout-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: var(--ease);
}

.logout-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.welcome-text {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dashboard-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(64, 124, 135, 0.08);
  transition: var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--ease);
}

.dashboard-card:hover::before {
  transform: scaleX(1);
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(64, 124, 135, 0.15);
}

.dashboard-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.dashboard-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.dashboard-card-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.dashboard-card p {
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-action {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ease);
  align-self: flex-start;
  margin-top: auto;
}

.card-action:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(64, 124, 135, 0.3);
}

.stats-section {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 8px 30px rgba(64, 124, 135, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(64, 124, 135, 0.05),
    rgba(165, 219, 221, 0.05)
  );
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--dark);
  opacity: 0.8;
  font-weight: 600;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.stats-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .user-menu {
    flex-direction: row;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

body {
  background-color: black;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, rgba(64, 124, 135, 0.1), rgba(165, 219, 221, 0.1));
  border-top: 1px solid rgba(64, 124, 135, 0.2);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-section h3 {
  font-size: 1.3rem;
}

.footer-section h4 {
  font-size: 1rem;
}

.footer-section p {
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--dark);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--ease);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(64, 124, 135, 0.2);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-bottom p {
  color: var(--dark);
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
