:root {
    --brand: #8f001a;
    --brand-dark: #6c0015;

    --text: #2d2d2c;
    --text-muted: #80746c;

    --accent-blue: #636d77;
    --accent-green: #636d77;

    /* chose the SECOND bg (#fdfdfd) since it's newer */
    --bg: #fdfdfd;
    --surface: #ffffff;

    --radius: 12px;
}

/* =====================
   Base styles
===================== */
body {
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    padding: 0;
}

p {
    font-family: 'Satoshi', sans-serif;
}
.link{
  display: inline-block;
    color: var(--brand);
}

 .nav-link.guest {
   font-weight: 500;
   color: #eebdc6;
   text-decoration: underline;
 }

 .nav-link.guest:hover {
   font-weight: 700;
   color: #eebdc6;
   text-decoration: underline;
 }



/*  space above the welcome heading */
.container h1 {
    margin-top: 30px !important;
    text-align: center;
}


/* NB: Card and image styles are now in page-specific CSS files, keep them there 
   (dashboard.css, my-items.css, category-items.css) */

/* 
   Bootstrap overrides
 */

/* Red = primary */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #760016;
    --bs-btn-hover-border-color: #760016;
    --bs-btn-active-bg: #640013;
    --bs-btn-active-border-color: #640013;
    --bs-btn-disabled-bg: var(--brand-dark);
    --bs-btn-disabled-border-color: #8F001A;
    --bs-btn-disabled-opacity: 0.5;
}

/* Green = success */
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent-green);
    --bs-btn-border-color: var(--accent-green);
    --bs-btn-hover-bg: #256628;
    --bs-btn-hover-border-color: #256628;
    --bs-btn-active-bg: #2a6c2d;
    --bs-btn-active-border-color: #1f5622;
    --bs-btn-disabled-bg: var(--accent-green);
    --bs-btn-disabled-border-color: var(--accent-green);
    --bs-btn-disabled-opacity: 0.5;
}
.flash-error {
  /* same as flash-danger */
  background: #fef2f2;
  border-left: 4px solid #b91c1c;
  color: #b91c1c;
}

/* =====================
   Custom components
===================== */

/* reward highlight */
.reward-highlight {
    text-align: center;
    font-weight: 700;
    margin-top: 6px;

    color: #d4af37 !important;
    font-weight: 700 !important;
  
    /* glow on the text */
    text-shadow:
      0 0 6px rgba(212, 175, 55, 0.3),
      0 0 14px rgba(212, 175, 55, 0.45);    

}

.wrong-date {
    color: var(--brand);
}

#submitBtn:disabled {
    opacity: 0.4;
    background-color: #640013;
    cursor: not-allowed;
}

/* 
   Flash messages
===================== */
/* =====================
   Flash Messages - Clean & Modern
===================== */

.flash-wrapper {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(450px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.flash-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn 0.3s ease forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'General Sans', sans-serif;
}

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

.flash-alert.hide {
  opacity: 0;
  transform: translateY(-12px);
}

/* Icon styles */
.flash-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Content */
.flash-content {
  flex: 1;
  min-width: 0;
}

.flash-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 400;
}

/* Close button */
.flash-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.flash-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* Color variants using your brand colors */

/* Success - Green accent */
.flash-success .flash-icon {
  color: #256628;
}

.flash-success {
  border-left: 4px solid #256628;
}

/* Danger/Error - Brand red */
.flash-danger .flash-icon,
.flash-error .flash-icon {
  color: var(--brand);
}

.flash-danger,
.flash-error {
  border-left: 4px solid var(--brand);
}

/* Warning - Darker brand red (to differentiate from error) */
.flash-warning .flash-icon {
  color: var(--brand-dark);
}

.flash-warning {
  border-left: 4px solid var(--brand-dark);
}

/* Info - Accent blue */
.flash-info .flash-icon {
  color: var(--accent-blue);
}

.flash-info {
  border-left: 4px solid var(--accent-blue);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .flash-wrapper {
    top: 70px;
    width: calc(100vw - 24px);
  }

  .flash-alert {
    padding: 14px 16px;
    gap: 10px;
  }

  .flash-message {
    font-size: 14px;
  }
}
/* =====================
nnavbar===================== */
/* =====================
   navbar
===================== */

/* Slim navbar + big logo - STATIC (pushes content down) */
.uf-navbar {
  background-color: #8f001a;
  padding: 0;
  min-height: 50px;
  overflow: visible;
  position: relative;
  width: 100%;
}

body {
  font-family: 'Satoshi', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  /* NO padding-top needed */
}

.uf-navbar-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

.uf-brand {
  padding: 0;
  margin: 0 0 0 -16px;
  line-height: 1;
}

.uf-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-top: -44px;
  margin-bottom: -44px;
}

.uf-wordmark {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  position: relative;
  top: 2px;
  line-height: 1;
  white-space: nowrap;
}

.uf-navlinks {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.uf-navlinks .nav-link {
  padding: 0.05rem 0.65rem;
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
  line-height: 1;
  white-space: nowrap;
}

.uf-toggler {
  padding: 0.1rem 0.35rem;
}

.uf-navbar .uf-navbar-inner {
  padding-left: 0 !important;
}

.uf-brand {
  margin-left: 20px;
}

.uf-section-title {
  color: #6c757d !important;
  font-weight: 600 !important;
}

/* make the report lost item more visible */
.nav-link.lost {
  position: relative;
  color: #eebdc6 !important;
  font-weight: 700 !important;
  transition: transform 0.25s ease, text-shadow 0.25s ease, color 0.25s ease;
  text-shadow: 0 0 6px rgba(206, 203, 193, 0.45), 0 0 14px rgba(212, 89, 55, 0.45);
}

.nav-link.lost:hover {
  transform: translateY(-2px);
  color: #f6d3da !important;
  text-shadow: 0 0 8px rgba(246, 211, 218, 0.9), 0 0 18px rgba(212, 89, 55, 0.7),
    0 0 28px rgba(212, 89, 55, 0.5);
}

/* Responsive navbar so iPad keeps desktop layout */
@media (max-width: 768px) {

  /* Only mobile phones get hamburger menu */
  .uf-navbar {
    min-height: 54px;
  }

  .uf-brand {
    margin-left: 8px;
  }

  .uf-logo {
    height: 28px;
    margin-top: -40px;
    margin-bottom: -40px;
  }

  .uf-navlinks {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0;
  }

  .uf-navlinks .nav-link {
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 0.95rem;
  }

  /* Mobile menu background */
  .navbar-collapse {
    background-color: #8f001a;
    margin-top: 0.5rem;
    border-radius: 8px;
  }
}

/* Small phones only */
@media (max-width: 576px) {
  .uf-navbar {
    min-height: 50px;
    padding: 0 8px 0 16px;
  }

  .uf-brand {
    margin-left: 0;
  }

  .uf-logo {
    height: 24px;
    margin-top: -36px;
    margin-bottom: -36px;
  }

  .uf-wordmark {
    font-size: 0.95rem;
    top: 1px;
  }

  .uf-navlinks .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .nav-link.lost {
    text-shadow: 0 0 4px rgba(206, 203, 193, 0.35), 0 0 10px rgba(212, 89, 55, 0.35);
  }
}

@media (max-width: 375px) {
  .uf-logo {
    height: 22px;
    margin-top: -34px;
    margin-bottom: -34px;
  }

  .uf-wordmark {
    font-size: 0.9rem;
  }

  .uf-navlinks .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
}
/* =====================
   Home Page Welcome Section
===================== */

.welcome-subtitle {
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 6px;
    font-weight: 400;
}

/* Community Banner */
.community-banner {
    background: #fff5f7;
    border: 1px solid #ffe0e6;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    margin-top: 4%;
}

.banner-icon {
    width: 42px;
    height: 42px;
    background: #ffe0e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand);
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--text);
    margin: 0 0 6px 0;
}

.banner-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-weight: 400;
}

.banner-link {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.banner-link:hover {
    text-decoration: underline;
}

.banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.banner-close:hover {
    color: var(--text);
}

/* Responsive for banner */
@media (max-width: 768px) {
    .welcome-subtitle {
        font-size: 15px;
    }
    
    .community-banner {
        padding: 16px 18px;
    }
    
    .banner-icon {
        width: 40px;
        height: 40px;
    }
    
    .banner-title {
        font-size: 16px;
    }
    
    .banner-text {
        font-size: 14px;
    }
}
/* message button */
@media (max-width: 640px) {
    .uf-feedback-btn {
        padding: 13px 22px;
        font-size: .9rem;
    }
}