/* some of the styles for Gello */
body {
  background: linear-gradient(135deg, #fae1b8 0%, #f3d18d 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 2rem;
  font-weight: bold;
  color: #742e10;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: #742e10;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #f3d18d;
  transform: translateY(-2px);
}

.btn-login {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #5a2410;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(116, 46, 16, 0.3);
}

.hero-section {
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  color: #742e10;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #5a2410;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.btn-signin {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  margin: 10px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-signin:hover {
  background-color: #5a2410;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(116, 46, 16, 0.3);
}

.register-link {
  color: #742e10;
  text-decoration: underline;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-link:hover {
  color: #5a2410;
  text-decoration: none;
}

.login-options {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 40px 0;
}

.login-options h2 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.login-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.login-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(116, 46, 16, 0.2);
}

.login-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.login-card-body {
  padding: 30px;
}

.login-card h3 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 15px;
}

.login-card p {
  color: #5a2410;
  font-size: 1.1rem;
}

.footer {
  background-color: rgba(116, 46, 16, 0.95);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer h4 {
  font-weight: bold;
  margin-bottom: 20px;
}

.footer p {
  font-size: 1rem;
  line-height: 1.6;
}

.social-btn {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  margin: 5px;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.2rem;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Social button brand colors */
.social-btn-facebook {
  background-color: #3b5998;
}

.social-btn-twitter {
  background-color: #55acee;
}

.social-btn-google {
  background-color: #dd4b39;
}

.social-btn-instagram {
  background-color: #ac2bac;
}

.social-btn-linkedin {
  background-color: #0082ca;
}

.social-btn-github {
  background-color: #333333;
}

/* Copyright section */
.copyright-section {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
}

/* Large icon display (for error pages) */
.icon-display-lg {
  font-size: 5rem;
}

/* Avatar image styles */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Input width utilities */
.w-100-input {
  width: 100%;
}

/* Priority colors */
.priority-high {
  color: rgb(206, 0, 0);
}

.priority-medium {
  color: rgb(233, 186, 0);
}

.priority-low {
  color: rgb(0, 190, 9);
}

/* Link reset for task navigation */
.link-inherit {
  text-decoration: none;
  color: inherit;
}

/* Skeleton avatar placeholder */
.skeleton-avatar {
  width: 24px;
  height: 24px;
}

/* HTMX loading indicator styles */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Skeleton loading animations */
.skeleton-card,
.skeleton-board-card,
.skeleton-list-column {
  opacity: 0.7;
}

/* Loading overlay for containers */
.loading-container {
  position: relative;
  min-height: 200px;
}

.loading-container.htmx-request::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

.loading-container.htmx-request .skeleton-placeholder {
  display: block;
}

.skeleton-placeholder {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* here are some of the login form styles */

.login-form-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(116, 46, 16, 0.15);
  animation: fadeInUp 0.6s ease;
}

.login-form-title {
  color: #742e10;
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 10px;
}

.login-input {
  border: 2px solid #fae1b8;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: #742e10;
  box-shadow: 0 0 0 0.2rem rgba(116, 46, 16, 0.15);
  outline: none;
}

.form-label {
  color: #742e10;
  font-weight: 600;
  margin-bottom: 8px;
}

/* css additions for registration page */

.required {
  color: #c62828;
  margin-left: 3px;
}

#registerForm .login-input {
  width: 100%;
}

/*  css additions for profile page  */

.dropbtn {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  width: max-content;
}

.dropdown-content a {
  color: #742e10;
  padding: 6px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f2e4de;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #5e240d;
}

.profile {
  padding: 60px 0 0 0;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.profile-options h2 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.profile-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.profile-card-body {
  padding: 30px;
}

.profile-card h3 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 15px;
}

.profile-card p {
  color: #5a2410;
  font-size: 1.1rem;
}

.prof-link {
  color: #742e10;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.prof-link:hover {
  color: #f3d18d;
  transform: translateY(-2px);
}

.tasks div {
  margin-bottom: 8px;
}

.profile + footer {
  margin-top: 0;
}

/* styles for profile pages */

.dropbtn {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  width: max-content;
}

.dropdown-content a {
  color: #742e10;
  padding: 6px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f2e4de;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #5e240d;
}

.profile {
  padding: 60px 0 0 0;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.profile-options h2 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.profile-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.profile-card-body {
  padding: 30px;
}

.profile-card h3 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 15px;
}

.profile-card p {
  color: #5a2410;
  font-size: 1.1rem;
}

.prof-link {
  color: #742e10;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.prof-link:hover {
  color: #f3d18d;
  transform: translateY(-2px);
}

.tasks div {
  margin-bottom: 8px;
}

.profile + footer {
  margin-top: 0;
}

.tasks-page {
  padding: 60px 0 60px 0;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.tasks-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.tasks-card h3 {
  color: #742e10;
  font-weight: bold;
  margin-bottom: 15px;
}

.tasks-card p {
  color: #5a2410;
  font-size: 1.1rem;
}

.priority-list {
  margin-left: 20px;
}

.btn-new-task {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  margin-left: 40px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* leaderboard page container */
.leaderboard-page {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0;
  min-height: calc(100vh - 76px);
}

/* top 3 winners */
.top-three-section {
  margin-bottom: 50px;
}

.winner-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(116, 46, 16, 0.2);
}

.winner-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.winner-name {
  color: #742e10;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.winner-note {
  color: #5a2410;
  font-size: 0.95rem;
  font-style: italic;
}

/* leaderboard card*/
.leaderboard-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.leaderboard-header {
  background-color: #742e10;
  color: white;
  padding: 20px 30px;
}

.leaderboard-header h3 {
  margin: 0;
  font-weight: bold;
}

.team-id {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Member Rows */
.member-row {
  padding: 20px 30px;
  border-bottom: 1px solid #fae1b8;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.member-row:hover {
  background-color: #fef9f3;
}

.member-row:last-child {
  border-bottom: none;
}

.member-avatar {
  width: 60px;
  height: 60px;
  background-color: #f3d18d;
  border-radius: 10px;
  margin-right: 20px;
  flex-shrink: 0;
}

.member-info {
  flex-grow: 1;
}

.member-name {
  color: #742e10;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.member-description {
  color: #5a2410;
  font-size: 0.9rem;
}

.member-actions {
  flex-shrink: 0;
}

/* Encouragement Button */
.btn-encourage {
  background-color: #742e10;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-encourage:hover {
  background-color: #5a2410;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(116, 46, 16, 0.3);
}

/* View Toggle (optional - for demo purposes) */
.view-toggle {
  text-align: center;
  margin-bottom: 30px;
}

.btn-toggle {
  background-color: white;
  color: #742e10;
  border: 2px solid #742e10;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.btn-toggle.active {
  background-color: #742e10;
  color: white;
}

.btn-toggle:hover {
  transform: translateY(-2px);
}

/* fade in animation with reuses existing fadInUp in the @keyframes*/
.fade-in {
  animation: fadeInUp 0.6s ease;
}

.page-title {
  font-size: 3.5rem; /* Match the vibe of .hero-title */
  font-weight: bold;
  color: #742e10;
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 1.3rem; /* Match the vibe of .hero-subtitle */
  color: #5a2410;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Mobile responsive styles (320px breakpoint) */
@media (max-width: 480px) {
  /* Prevent horizontal overflow */
  html,
  body {
    overflow-x: hidden;
  }

  /* Leaderboard page mobile adjustments */
  .leaderboard-page {
    padding: 30px 0;
  }

  .leaderboard-header {
    padding: 15px;
  }

  .member-row {
    padding: 15px;
    flex-wrap: wrap;
  }

  .member-avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .member-info {
    min-width: 0;
  }

  .member-name {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .member-actions {
    width: 100%;
    margin-top: 10px;
  }

  .btn-encourage {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Winner cards mobile adjustments */
  .winner-card {
    padding: 15px;
  }

  .winner-image {
    height: 150px;
  }

  .winner-name {
    font-size: 1rem;
  }

  /* Page titles mobile adjustments */
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
}
