
body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6f8;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#1e293b;
    padding:18px 30px;
}

.logo{
    color:white;
    font-size:26px;
    font-weight:bold;
}

nav{
    display:flex;
    gap:24px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
}

nav a:hover{
    color:#38bdf8;
}

body > h1,
body > h2,
body > p,
body > input,
body > button,
body > select,
body > textarea,
body > hr{
    margin-left:32px;
}

.dashboard-layout{
  display: none;
  position: fixed;
  top: 60px;
  right: 90px;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  margin-left: 0;
}

.dashboard-layout section {
  margin:12px 0;
}

.dashboard-layout #storepageHeader,
.dashboard-layout #storeProfileSummary {
  margin: 0 0 12px 0;
}

.dashboard-panel,
.feed-panel{
    margin-left:0;
}


section{
    padding:24px;
    margin:24px 32px;
    border-radius14px;
    box-shadow:0 8px 24px rgba(15,23,42,0.08);
}

input,
select,
textarea,
button{
    font-size:16px;
}

button{
    min-width:120px;
}

textarea{
    min-height:80px;
    resize:vertical;
}

input,
textarea,
select,
button{
    margin:0;
}

#issues > div{
    background:#ffffff;
    border:1px solid #e2e8f0
    border-radius:14px;
    padding:20px;
    margin:18px 0;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
}

#issues h3{
    margin-top:0;
    font-size:24px;
    color:#1e293b;
}

#issues p{
    margin:10px 0;
    color:#475569;
}

#issues button{
    margin-top:12px;
}


.form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row input,
.form-row textarea,
.form-row select {
    box-sizing: border-box;
}

.form-row input {
    min-width: 240px;
    flex: 1;
}

.issue-form textarea {
    min-width: 280px;
    flex: 2;
}

.issue-form select {
    min-width: 140px;
}

.form-row button {
    flex: 0 0 auto;
}


input,
textarea,
select {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}


button {
    padding: 12px 18px;
    min-width: 120px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}


.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
}

.stat-card{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:20px;
    text-align:center;
}

.stat-label{
    display:block;
    font-size:14px;
    color:#64748b;
    margin-bottom:8px;
}

.stat-number{
    display:block;
    font-size:36px;
    font-weight:700;
    color:#1e293b;
}

.stat-high{
    border-top:5px solid #ef4444;
}

.stat-medium{
    border-top:5px solid #f59e0b;
}

.stat-low{
    border-top:5px solid #22c55e;
}

.issue-card{
    background:#ffffff;
    border:1px solid #e5e7eb
    border-radius:14px;
    padding:20px;
    margin-bottom:18px;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.issue-card h3{
    margin:0 0 12px;
    font-size:22px
}

.issue-description{
    color:#4b5563;
    margin-bottom:16px;
}

.issue-meta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.reported-time{
    color:#6b7280;
    font-size:14px;
    margin-bottom:18px;
}

.store-name,
.category-badge,
.severity-badge,
.status-badge,
    display:inline-block;
    padding:6px 12px;
    border-radius:999px
    font-size:13px;
    font-weight:600;
}

.store-name{
    background:#eef2ff;
    color:#3730a3;
}

.category-badge{
    background:#ecfeff;
    color:#155e75;
}

.severity-badge{
    background:#fef3c7;
    color:#92400e;
}

.status-badge{
    background:#dcfce7;
    color:#166534;
}

.issue-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
}

.issue-actions button{
    flex:1;
}

/* MOBILE GLOBAL PULSE */

.pulse-card {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.community-tip-result {
   background: #ffffff;
   padding: 16px;
   margin-bottom: 12px;
   border: 1px solid #ddd;
   border-radius: 12px;
}

.pulse-store {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 3px;
}

.pulse-title {
     font-size:15px;
     margin-bottom: 4px;
}

.pulse-description {
  margin: 4px 0 8px;
  line-height: 1.35;
}

.pulse-meta {
    font-size:13px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.pulse-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.pulse-actions button {
    flex: 1 1 120px;
    min-width: 120px;
    max-width: 220px;
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.admin-edit-btn,
.admin-hide-btn,
.admin-restore-btn {
  position: static;
  flex: 1 1 120px;
  min-width: 120px;
  max-width: 220px;
}

.admin-edit-btn {
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
}

@media (max-width: 767px) {
    .feed-panel {
        padding:12px;
    }

  .pulse-card {
       padding:10px;
       margin-bottom:8px;
       position: relative;
    }

  .admin-hide-btn {
    position: static;
    top: 10px;
    right 10px;
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #999;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}   
 
    .pulse-actions button {
        padding: 7px 4px;
        font-size: 12px;
    }

    .issue-filters {
         display: flex;
         gap: 6px;
         overflow-x auto;
         padding-bottom: 6px;
    }

    .issue-filters select {
        flex: 0 0 auto;
        min-width: 125px;
    }
}

/* QR VISITOR MODE */

body.qr-visitor #authSection {
    opacity: 0.95;
}

.profile-panel {
  display: none;
  position: absolute;
  top: 60px;
  right: 16px;
  width: min(340px, calc(100vw - 32px));
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}
 
.profile-panel.open {
  display: block;
}

.report-panel {
display: none;
position: absolute;
top: 60px;
right: 16px;
width: min(380px, calc(100vw -32px));
background:white;
padding: 18px;
border-radius:12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
z-index: 1000;
}

.report-panel.open {
  display: block;
}

.dashboard-toggle-panel {
  display: none;
}

.dashboard-toggle-panel.open {
  display: block;
}

.dashboard-layout.open .dashboard-toggle-panel {
  display: block;
}

.profile-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-login input {
  width:100%;
}

.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap wrap;
}

.dashboard-chart-card {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-chart-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.dashboard-bar-row {
   display: grid;
   grid-template-columns: 80px 1fr 40px;
   align-items: center;
   gap: 12px;
   margin: 14px 0;
}

.dashboard-bar-track {
  height: 18px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.dashboard-bar-open {
  background: #ef4444;
}

.dashboard-bar-resolved {
  background: #22c55e;
}

.store-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.store-status-donut {
  width: 150px;
  height: 154px;
  border-radius: 50%;
  background: conic-gradient(
    #ef4444 0%,
    #ef4444 100%
  );
  display: flex;
  align-items; center;
  justify-content: center;
}

.store-status-donut-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.store-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-open {
  background: #ef4444;
}

.legend-resolved {
  background: #22c55e;
}

.dashboard-layout.open {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  align-items; start;
}

#storeProfileSummary {
  margin: 0;
}

.dashboard-chart-card {
  margin-top: 0;
}

.store-donut-wrap {
  justify-content: center;
}

.store-status-donut {
  width: 120px;
  height: 120px;
}

.store-status-donut-center {
  width: 68px;
  height: 68px;
  font-size: 22px;
}

.store-chart-legend {
  min-width: 120px;
}

#dashboard {
  grid-column: 1;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
 
.stat-card {
  padding: 14px:
  min-height: 90px;
}

@media (max-width: 900px) {
  .dashboard-layout {
   grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


.step-heading {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 4px;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-itmes: center;
  justify-content: center;
  flex-shrink: 0;

  color: white;
  font-size: 24px;
  font-weight: 800;
}

.step-1 {
  background: #16a34a;
}

.step-2 {
  background: #f59e0b;
}

.step-3 {
 background: #7c3aed;
}

.step-helper {
  margin: 0 0 16px 56px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 500;
}

.live-activity-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 4px;
}

.live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}

.live-activity-helper {
  margin: 2px 0 10px;
  color: #64748b;
  font-size: 0.85rem;
}

.step-section {
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.live-activity-section {
  background: #eef7ff;
  border: 1px solid #cfe6ff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

section.step-section-1 {
  background: #eaf8ee;
  border: 1px solid #bbf7d0;
}
  

#reportIssue {
  background: #effbf3;
  border: 1px solid #dcfce7;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

section.step-section-2 {
  background: #fff4df;
  border: 1px solid #fde68a;
}

section.step-section-3 {
  background: #f1ebff;
  border: 1px solid #ddd6fe;
}

.live-activity-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 2px 8px;
  scroll-snap-type: x proximity;
}

.live-activity-card {
  flex: 0 0 220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  background: white;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 10px 12px;

  scroll-snap-align: start;
}

.live-activity-main {
  min-width: 0;
}

.live-activity-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.live-activity-store {
  font-size: 14px;
  color: #64748b;
}

.live-activity-time {
  flex-shrink: 0;
  font-size: 13px;
  color: #64748b;
}

.live-activity-store-link {
  cursor: pointer;
}

.live-activity-store-link:hover {
   text-decoration: underline;
}

.dashboard-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  paddinng: 9px 16px;
  background: #7c3aed;
  color: white;
  border: 1px solid #6d28d9;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  line-height: 1;
  
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.22);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
}

.dashboard-toggle:hover {
  background: #6d28d9;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

.dashboard-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.22);
}

.feedback-bar-helpful {
  background: #2563eb;
}

.feedback-bar-not-helpful {
 background: #dc2626;
}

.notice-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 14px;

  border: 1px solid #d9d5e8;
  border-radius: 12px;

  background: #f5f3fa;
  color: #3f3a52;

  font-size: 0.9rem;
  font-weight: 650;
  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.notice-type-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.notice-type-btn:hover {
  background: #ebe7f5;
  border-color: #b9afd3;
  transform: translateY(-1px);
}

.notice-type-btn:active {
  transform: translateY(0);
}

.notice-type-btn.selected {
  background: #e5def5;
  border-color: #7c69b3;
  color: #352c55;

  box-shadow: 0 0 0 2px rgba(124, 105, 179, 0.12);
}

button.notice-type-btn[data-category="Issue"] {
   background: #ef4444 !important;
}

button.notice-type-btn[data-category="Rare Find"] {
   background: #166534 !important;
}

button.notice-type-btn[data-category="Service"] {
   background: #ec4899 !important;
}

button.notice-type-btn[data-category="Safety"] {
   background: #f59e0b !important;
}

button.notice-type-btn[data-category="Inventory"] {
   background: #1453b8 !important;
}

.store-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.store-search-row #storeSearch {
  flex: 1;
  min-width: 0;
}

.store-search-button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.quick-search-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.quick-search-chip {
  flex: 0 0 auto;
  border: 1px solid #d9dee8;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.quick-search-chip:active {
  transform: scale(0.97);
}
    
.search-explore-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(0 ,0, 0, 0.05);
}

.search-explore-header {
  margin-bottom: 10px;
}

.search-explore-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.search-explore-header p {
  margin: 2px 0 0;
  font-size; 0.85rem;
  color: #6b7280;
}

.live-activity-shorcuts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
}

.live-shortcut {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.live-shortcut svg {
  width: 16px;
  height: 16px;
}

.live-shortcut-rare {
  background: #fef3c7;
  color: #92400e;
}

.live-shortcut.tip {
  background: #ffedd5;
  color: #9a3412;
}

.live-shortcut.stock {
  background: #dcfce7
  color: #166534
}

.live-shortcut.out {
  background: #fee2e2;
  color: #b91c1c;
}

.live-shortcut.issue {
  background: #ffe4e6;
  color: #be123c;
}

.contribute-category-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  width: 100%;
}

.contribute-category-option {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.contribute-category-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.selected-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 12px;
  padding: 7px 10px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}

.selected-category-pill strong {
  margin-left: 2px;
}

.selected-category-pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.selected-category-clear {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;

  padding 0;
  margin left: 5px;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;
  border-radius: 50%;
  color: #64748b;
 
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 20px;
  cursor: pointer;
}

.community-tip-choices {
  margin: 8px 0 14px;
}

.community-tip-choice-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.community-tip-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#reportIssue .community-tip-option {
   min-width: 0;
  display: inline-flex;
  align-items; center;
  justify-content: center;
  gap: 6px;

  padding: 8px 10px;
  border: none;
  border-radius: 10px;

  background: #ccfbf1;
  color: #115e59;

  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.community-tip-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* COMMUNITY TIPS */

.community-tips-card {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}

.step-section-4 h2 {
  color: #115e59;
}

.step-section-4 .community-tip-option {
  background: #14b8a6;
  color: white;
  border: none;
}

.step-section-4 .community-tip-option:hover {
  background: #0f766e;
}

.community-tip-option[data-tip-type="Parking"] {
  background: #0f766e;
}

.step-section-4 .community-tip-option[data-tip-type="Quiet Spot"] {
  background: #0d9488;
}

.step-section-4 .community-tip-option[data-tip-type="Restroom"] {
  background: #14b8a6;
}

.step-section-4 .community-tip-option[data-tip-type="Accessibility"] {
  background: #0891b2;
}

.step-section-4 .community-tip-option[data-tip-type="Other"] {
  background: #0e7490;
}


.storepulse-news {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw- 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d9dee8;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
}

.storepulse-news-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #475569;

  font-size: 20px;
  line-height: 1;
  cursor: pointer;

  z-index: 2;
}

.storepulse-news-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding-right: 24px;
}

.storepulse-news-heading svg {
  width: 20px;
  height: 20px;
}

.storepulse-news-title {
  padding: 2px 6px;
  border-radius: 8px;
  background: #7c3aed;
  color: white;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}

.storepulse-news p {
  margin: 9px 0 12px;
  line-height: 1.4;
  font-size: 13px;
  font-weight: 700;
}

.storepulse-news-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
  

