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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f7f9;
  color: #1f2933;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(23, 107, 135, 0.25);
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.08);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: #176b87;
  color: #fff;
  box-shadow: 0 4px 14px rgba(23, 107, 135, 0.25);
}
.btn-primary:hover {
  background-color: #12576d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 107, 135, 0.35);
}

.btn-secondary {
  background-color: #fff;
  color: #176b87;
  border: 1.5px solid #176b87;
  box-shadow: 0 2px 8px rgba(23, 107, 135, 0.08);
}
.btn-secondary:hover {
  background-color: #edf6f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 107, 135, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid #176b87;
  color: #176b87;
  box-shadow: 0 2px 8px rgba(23, 107, 135, 0.08);
}
.btn-outline:hover {
  background-color: #edf6f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 107, 135, 0.15);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: 0.6rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-search {
  background-color: #176b87;
  color: white;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s;
}
.btn-search:hover {
  background-color: #12576d;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 0.35rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #dde6eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(31, 41, 51, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #20343d;
  letter-spacing: -0.02em;
}
.nav-brand .brand-accent {
  color: #176b87;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 500;
  color: #52616b;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
  background-color: #edf6f8;
  color: #176b87;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 4px;
  padding: 0.25rem;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background-color: #20343d;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #eaf3f5 0%, #dde8ec 100%);
  padding: 5rem 2rem;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(23,107,135,0.06) 1px, transparent 1px), linear-gradient(rgba(23,107,135,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #20343d;
  letter-spacing: -0.03em;
}
.hero-highlight {
  color: #176b87;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #52616b;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(31, 41, 51, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}
.hero-search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  border-right: 1px solid #dde6eb;
  font-size: 1rem;
  outline: none;
  background: #fff;
}
.hero-search-input:focus {
  background: #f8fafb;
}

/* ===== STATS ===== */
.stats-banner {
  background-color: #176b87;
  color: white;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(23, 107, 135, 0.2);
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: #fff;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #20343d;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.page-title {
  margin-bottom: 0.4rem;
  font-size: 2.2rem;
  font-weight: 800;
  color: #20343d;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-bottom: 1.5rem;
  color: #647784;
  font-size: 1.05rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: white;
  padding: 2rem 1.5rem;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  transition: all 0.25s ease;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(31,41,51,0.1);
  border-color: #b9d4de;
}
.step-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #176b87;
  margin-bottom: 0.75rem;
}
.step-icon {
  color: #176b87;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #20343d;
}
.step-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== CATEGORY CHIPS ===== */
.category-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-top: 1px solid #dde6eb;
  border-bottom: 1px solid #dde6eb;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.category-chip {
  padding: 0.6rem 1.25rem;
  background: #edf6f8;
  border: 1.5px solid #b9d4de;
  border-radius: 2rem;
  font-weight: 600;
  color: #176b87;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.category-chip:hover {
  background: #176b87;
  color: white;
  border-color: #176b87;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23, 107, 135, 0.2);
}

/* ===== RECENT ITEMS ===== */
.recent-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.item-card {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  transition: all 0.25s ease;
}
.item-card:hover {
  border-color: #b9d4de;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31,41,51,0.1);
}
.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.item-type {
  padding: 0.3rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.item-type.lost { background: #fee2e2; color: #b91c1c; }
.item-type.found { background: #dcfce7; color: #15803d; }
.item-type.returned { background: #e0f2fe; color: #0369a1; }
.item-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #20343d;
}
.item-card p {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.item-card .btn {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
}

/* ===== LOCATION CHART ===== */
.location-section {
  padding: 4rem 2rem;
  background-color: #eaf0f2;
}
.chart-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
}
.chart-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.chart-label {
  width: 160px;
  font-weight: 600;
  color: #20343d;
  font-size: 0.95rem;
}
.chart-track {
  flex: 1;
  background: #f3f4f6;
  height: 32px;
  border-radius: 0.5rem;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, #176b87, #2a9db8);
  border-radius: 0.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 50px;
  transition: width 0.5s ease;
}

/* ===== SUCCESS STORIES ===== */
.success-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.success-stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.success-card {
  background: white;
  padding: 1.75rem;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  border-left: 5px solid #10b981;
  transition: all 0.25s ease;
}
.success-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31,41,51,0.1);
}
.success-card p {
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #20343d 0%, #2a3f4d 100%);
  color: white;
  padding: 3rem 2rem 1.5rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-brand .brand-accent {
  color: #5ec4e0;
}
.footer-links a {
  margin-left: 1.25rem;
  color: #d1d5db;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #5ec4e0;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-size: 0.85rem;
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 41, 51, 0.55);
  z-index: 200;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  padding: 2.5rem;
  border-radius: 0.75rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: #20343d;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #dde6eb;
}
.modal h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #20343d;
}
.modal-subtitle {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #37474f;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #dde6eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.1);
}

.modal form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
  color: #37474f;
}

.modal form input {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #dde6eb;
  border-radius: 0.5rem;
}
.auth-toggle {
  margin-top: 1.25rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}
.auth-toggle a {
  color: #176b87;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
}
.toast {
  background: #20343d;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-weight: 500;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== EXPLORE PAGE ===== */
.explore-main, .report-main, .dashboard-main, .details-main {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1.25rem;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
}
.filter-search {
  padding: 0.75rem;
  border: 1.5px solid #dde6eb;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.filter-search:focus {
  border-color: #176b87;
}
.results-count {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #52616b;
  font-size: 1rem;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination button {
  padding: 0.6rem 1.1rem;
  border: 1.5px solid #dde6eb;
  background: white;
  cursor: pointer;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination button:hover {
  background: #edf6f8;
  border-color: #176b87;
}
.pagination button.active {
  background: #176b87;
  color: white;
  border-color: #176b87;
}

/* ===== REPORT FORM ===== */
.report-form {
  background: white;
  padding: 2.5rem;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
}
.form-section {
  margin-bottom: 2.5rem;
}
.form-section h2 {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: #20343d;
  font-weight: 700;
}
.radio-group {
  display: flex;
  gap: 1rem;
}
.radio-card {
  flex: 1;
  cursor: pointer;
}
.radio-card input {
  display: none;
}
.radio-content {
  display: block;
  padding: 1.25rem;
  border: 2px solid #dde6eb;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #20343d;
}
.radio-card input:checked + .radio-content {
  border-color: #176b87;
  background: #edf6f8;
  color: #176b87;
  box-shadow: 0 4px 10px rgba(23, 107, 135, 0.1);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.full-width {
  grid-column: span 2;
}

/* ===== DETAILS PAGE ===== */
.item-detail-card {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.item-detail-info {
  flex: 1;
  min-width: 250px;
}
.item-detail-info h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: #20343d;
}
.item-detail-info p {
  margin-bottom: 0.5rem;
  color: #4b5563;
  line-height: 1.5;
}
.match-score {
  display: inline-block;
  background: linear-gradient(135deg, #176b87, #2a9db8);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 0.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(23, 107, 135, 0.25);
}

/* ===== DASHBOARD ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dash-stat {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  border: 1px solid #dde6eb;
  transition: transform 0.2s;
}
.dash-stat:hover {
  transform: translateY(-3px);
}
.dash-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #176b87;
  line-height: 1;
}
.dashboard-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dashboard-column {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  border: 1px solid #dde6eb;
}
.dashboard-column h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #20343d;
  font-weight: 700;
}
.dashboard-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.dashboard-item:last-child {
  border-bottom: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 1px solid #dde6eb;
    border-radius: 0 0 0.75rem 0.75rem;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
  .report-layout {
    grid-template-columns: 1fr;
  }
  .details-layout {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .item-detail-card {
    flex-direction: column;
  }
}

/* ===== ITEM CARD ENHANCEMENTS ===== */
.item-card-body {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.item-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #edf6f8;
  color: #176b87;
  font-weight: 700;
}
.match-badge {
  display: inline-block;
  background: linear-gradient(135deg, #176b87, #2a9db8);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
  box-shadow: 0 2px 6px rgba(23, 107, 135, 0.2);
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 0.35rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  padding: 2rem;
  border: 2px dashed #dde6eb;
  border-radius: 0.75rem;
  text-align: center;
  color: #6b7280;
  background: #fafbfc;
}
.empty-state p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.loading-placeholder {
  padding: 2.5rem;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  font-size: 1rem;
}

/* ===== FILTER TAGS ===== */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: #edf6f8;
  border: 1.5px solid #b9d4de;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: #176b87;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-tag:hover {
  background: #176b87;
  color: white;
  border-color: #176b87;
}
.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sort-bar label {
  font-weight: 600;
  color: #52616b;
  font-size: 0.95rem;
}
.sort-bar select {
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #dde6eb;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.sort-bar select:focus {
  border-color: #176b87;
}

/* ===== DETAILS LAYOUT ===== */
.breadcrumb {
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: #176b87;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.details-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.related-items {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
}
.related-items h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #20343d;
  font-weight: 700;
}
.related-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.related-item:last-child {
  border-bottom: none;
}
.related-item a {
  color: #176b87;
  font-weight: 600;
  transition: color 0.2s;
}
.related-item a:hover {
  color: #12576d;
}
.item-detail-visual {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #edf6f8, #dde8ec);
  border: 1.5px solid #dde6eb;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.item-detail-visual .item-icon-large {
  font-size: 4rem;
}
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #dde6eb;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== REPORT LAYOUT ===== */
.report-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.tips-sidebar {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(31,41,51,0.05);
  position: sticky;
  top: 80px;
}
.tips-sidebar h3 {
  margin-bottom: 1rem;
  color: #176b87;
  font-size: 1.1rem;
  font-weight: 700;
}
.tips-sidebar ul {
  list-style: none;
  padding: 0;
}
.tips-sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  color: #6b7280;
}
.tips-sidebar li:last-child {
  border-bottom: none;
}
.tips-sidebar li::before {
  content: '- ';
  color: #176b87;
  font-weight: bold;
}
.photo-preview {
  margin-top: 0.5rem;
  max-width: 200px;
  max-height: 150px;
  border-radius: 0.5rem;
  border: 1.5px solid #dde6eb;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.photo-preview.visible {
  display: block;
}
.char-counter {
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: right;
  margin-top: 0.25rem;
}
.form-error {
  color: #b91c1c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
  font-weight: 500;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}
.form-group.has-error .form-error {
  display: block;
}

/* ===== REPORT TIME PICKER ===== */
.time-picker-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.5rem 0;
}

.circular-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 320px);
  padding: 1.25rem;
  border: 1px solid #dce8ed;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff 0%, #f2f8fa 100%);
  box-shadow: 0 12px 30px rgba(31, 58, 68, 0.1);
  cursor: pointer;
  user-select: none;
  position: relative;
  touch-action: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.circular-clock:hover,
.circular-clock:active {
  border-color: #a9cbd6;
  box-shadow: 0 15px 34px rgba(23, 107, 135, 0.16);
}

.circular-clock:active {
  cursor: grabbing;
}

.circular-clock:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.24);
  outline-offset: 3px;
}

.clock-svg {
  display: block;
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5fafc 74%, #e8f2f6 100%);
  box-shadow: 0 8px 22px rgba(23, 67, 82, 0.13), inset 0 0 0 1px #dce8ed;
}

.clock-svg .clock-border {
  fill: none;
  stroke: #b7d3dd;
  stroke-width: 2;
}

.clock-svg .clock-face {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #dce8ed;
  stroke-width: 1;
}

.clock-svg .clock-tick {
  stroke: #91aeb9;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.clock-svg .clock-tick.minor {
  stroke: #bdcfd5;
  stroke-width: 1;
}

.clock-svg .clock-tick.major {
  stroke: #176b87;
  stroke-width: 2.6;
}

.clock-svg .clock-number {
  fill: #294955;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: inherit;
}

.clock-svg .clock-hand {
  stroke: #176b87;
  stroke-width: 3.5;
  stroke-linecap: round;
  pointer-events: none;
}

.clock-svg .clock-hand.hour {
  stroke: #234b59;
  stroke-width: 5;
}

.clock-svg .clock-hand.minute {
  stroke: #1590ad;
  stroke-width: 3;
}

.clock-svg .clock-center-dot {
  fill: #ffffff;
  stroke: #176b87;
  stroke-width: 3;
}

.clock-digital {
  min-width: 148px;
  padding: 0.45rem 1rem;
  border: 1px solid #dce8ed;
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.035em;
  color: #203f4b;
  font-size: 1.15rem;
  line-height: 1.2;
  box-shadow: 0 3px 8px rgba(31, 58, 68, 0.06);
}

.clock-time-label {
  align-self: stretch;
  color: #294955;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.clock-time-entry {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cbdce2;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #203f4b;
  font: inherit;
  font-size: 1rem;
  text-align: center;
}

.clock-time-entry::placeholder {
  color: #94a8b0;
}

.clock-time-entry:focus {
  outline: 2px solid rgba(23, 107, 135, 0.2);
  border-color: #176b87;
}

.clock-hint {
  margin: 0;
  text-align: center;
  color: #627984;
  font-size: 0.8rem;
  max-width: 320px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .circular-clock {
    width: min(100%, 300px);
    padding: 1rem;
  }

  .clock-svg {
    width: min(100%, 240px);
  }
}

/* ===== SAFE EXCHANGE PAGE ===== */
.safe-exchange-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}
.safe-exchange-main .page-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.safe-exchange-main .page-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.exchange-card {
    background: white;
    border: 1px solid #dde6eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(31,41,51,0.04);
}
.exchange-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #20343d;
    font-size: 1.2rem;
}
.exchange-card p {
    color: #6b7280;
    font-size: 0.9rem;
}
.checklist {
    list-style: none;
    padding: 0;
}
.checklist li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #37474f;
    font-size: 0.9rem;
}
.checklist li:last-child {
    border-bottom: none;
}
.meeting-locations {
    list-style: none;
    padding: 0;
}
.meeting-locations li {
    padding: 0.5rem 0;
    color: #37474f;
    font-size: 0.9rem;
}
.exchange-result {
    background: white;
    border: 1px solid #dde6eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(31,41,51,0.04);
}
.exchange-result h2 {
    margin-top: 0;
    color: #20343d;
}
.verification-code {
    display: inline-block;
    background: #edf6f8;
    color: #176b87;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.35rem;
    border: 1px dashed #176b87;
}
.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.exchange-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}
.exchange-item:last-child {
    border-bottom: none;
}
.safe-exchange-modal {
    max-width: 500px;
}
.safe-exchange-modal .verification-code {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
}

/* ===== IMAGE PLACEHOLDER ===== */
.photo-preview:not(.visible) {
    display: block;
    background: #f3f4f6;
    border: 1.5px dashed #9ca3af;
    min-height: 100px;
    max-width: 200px;
    max-height: 150px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}
.photo-preview:not(.visible)::before {
    content: "No photo uploaded";
}

/* ===== DASHBOARD ENHANCEMENTS ===== */
.dashboard-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.dashboard-item-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.claim-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.claim-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.claim-pending { background: #fef3c7; color: #92400e; }
.claim-approved { background: #dcfce7; color: #15803d; }
.claim-rejected { background: #fee2e2; color: #b91c1c; }
.claim-completed { background: #e0f2fe; color: #0369a1; }
.dash-stat .stat-label {
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31,41,51,0.04);
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 4px 12px rgba(31,41,51,0.08);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: white;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #20343d;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f8fafb;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #176b87;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== VISUAL ENHANCEMENTS ===== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Image Placeholder Enhancement */
.photo-preview:not(.visible) {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px dashed #9ca3af;
  min-height: 120px;
  max-width: 250px;
  max-height: 180px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
}

/* Form Enhancements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #20343d;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde6eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.1);
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Empty State Enhancement */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.empty-state p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-container {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-auth {
    display: flex;
    gap: 0.5rem;
  }
}

/* Loading States */
.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #20343d;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  font-weight: 500;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Auth Modal Enhancement */
.auth-modal {
  max-width: 420px;
  padding: 2rem;
}

.auth-modal h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.auth-toggle {
  text-align: center;
  margin-top: 1rem;
  color: #6b7280;
}

.auth-toggle a {
  color: #176b87;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ===== TOAST ===== */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}