/* ===== Design System Variables ===== */
:root {
  /* Primary Colors */
  --rim-primary: #22b8cf;
  --rim-primary-hover: #1a9fb5;
  --rim-primary-rgb: 34, 184, 207;

  /* Accent Colors */
  --rim-gold: #fbbf24;
  --rim-gold-rgb: 251, 191, 36;

  /* Background Colors */
  --rim-bg-light: #f8f9fa;
  --rim-bg-white: #ffffff;

  /* Text Colors */
  --rim-text-primary: #1f2937;
  --rim-text-secondary: #6b7280;
  --rim-text-muted: #9ca3af;

  /* Card & Shadow */
  --rim-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --rim-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --rim-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rim-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --rim-radius: 0.75rem;
  --rim-radius-sm: 0.5rem;
  --rim-radius-lg: 1rem;

  /* Bootstrap Overrides */
  --bs-primary: #22b8cf !important;
  --bs-primary-rgb: 34, 184, 207 !important;
  --bs-body-bg: #f8f9fa;
}

/* ===== Typography ===== */
body {
  font-family:
    "Poppins",
    "Raleway",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  color: var(--rim-text-primary);
  background-color: var(--rim-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--rim-text-primary);
}

.text-primary {
  color: var(--rim-primary) !important;
}

.text-gold {
  color: var(--rim-gold) !important;
}

/* ===== Cards ===== */
.card-modern {
  background: var(--rim-bg-white);
  border-radius: var(--rim-radius);
  box-shadow: var(--rim-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card {
  border-radius: var(--rim-radius);
  border: none;
  box-shadow: var(--rim-shadow-sm);
}

/* ===== Buttons ===== */
.btn {
  border-radius: var(--rim-radius-sm);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--rim-primary) !important;
  border-color: var(--rim-primary) !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rim-primary-hover) !important;
  border-color: var(--rim-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 184, 207, 0.3);
}

.btn-outline-primary {
  border-color: var(--rim-primary) !important;
  color: var(--rim-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--rim-primary) !important;
  border-color: var(--rim-primary) !important;
  color: white !important;
}

/* ===== Badges ===== */
.badge-points {
  background-color: rgba(34, 184, 207, 0.1);
  color: var(--rim-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ===== Forms ===== */
.form-control,
.form-select {
  border-radius: var(--rim-radius-sm);
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rim-primary);
  box-shadow: 0 0 0 0.2rem rgba(34, 184, 207, 0.15);
}

.form-signin {
  max-width: 700px;
  padding: 1rem;
}

.form-lost-password {
  max-width: 400px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

#solidary_action_description,
#reward_action_description {
  height: 100px;
}

fieldset.radio_buttons .form-check:first-of-type,
fieldset.check_boxes .form-check:first-of-type {
  margin-top: 31px;
}

abbr {
  font-weight: bold;
  color: #ef4444;
}

/* ===== Navigation ===== */
.navbar {
  border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
  font-size: 1.1rem !important;
}

.nav-link {
  color: var(--rim-text-secondary) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--rim-primary) !important;
}

.nav-link.active {
  color: var(--rim-primary) !important;
  font-weight: 600;
}

.dropdown-menu {
  border-radius: var(--rim-radius-sm);
  box-shadow: var(--rim-shadow-lg);
  border: 1px solid #e5e7eb;
}

.dropdown-item {
  padding: 0.625rem 1.25rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(34, 184, 207, 0.05);
}

.nav-underline .nav-link.active,
.nav-underline .show > .nav-link {
  font-weight: 600;
  border-bottom-color: var(--rim-primary);
  color: var(--rim-primary) !important;
}

.nav-underline .nav-link {
  color: var(--rim-text-secondary);
  font-weight: 500;
}

.nav-underline .nav-link:hover {
  color: var(--rim-primary);
}

/* ===== Background Classes ===== */
.bg-primary {
  background-color: var(--rim-primary) !important;
}

.bg-light-blue {
  background-color: rgba(34, 184, 207, 0.05);
}

/* ===== Utility Classes ===== */
.shadow-rim {
  box-shadow: var(--rim-shadow);
}

.shadow-rim-md {
  box-shadow: var(--rim-shadow-md);
}

.shadow-rim-lg {
  box-shadow: var(--rim-shadow-lg);
}

.rounded-rim {
  border-radius: var(--rim-radius) !important;
}

.rounded-rim-sm {
  border-radius: var(--rim-radius-sm) !important;
}

.rounded-rim-lg {
  border-radius: var(--rim-radius-lg) !important;
}

/* ===== Icon Boxes ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--rim-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-box-red {
  background-color: #fee2e2;
  color: #dc2626;
}
.icon-box-green {
  background-color: #dcfce7;
  color: #16a34a;
}
.icon-box-blue {
  background-color: #dbeafe;
  color: #2563eb;
}
.icon-box-yellow {
  background-color: #fef3c7;
  color: #ca8a04;
}
.icon-box-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}
.icon-box-cyan {
  background-color: #cffafe;
  color: #0891b2;
}

/* ===== Homepage Sections ===== */
@keyframes rimFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rim-photo-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rim-photo-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.rim-category-card:hover {
  background-color: rgba(34, 184, 207, 0.04);
  transform: translateY(-4px);
}

.rim-category-card:hover .icon-box {
  transform: scale(1.1);
}

.rim-feature-tile {
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rim-feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
