/* Reqtick Web App Stylesheet — Premium Vanilla CSS */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@8..144,400;8..144,500;8..144,600;8..144,700;8..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --bg: oklch(100% 0 0);         /* Pure White */
  --surface: oklch(96.5% 0.003 0); /* Gray 50 (#F6F6F6) */
  --fg: oklch(0% 0 0);           /* Pure Black */
  --muted: oklch(40% 0 0);       /* Gray 500 (#5A5A5A) */
  --border: oklch(92% 0 0);      /* Gray 100 (#E2E2E2) - used for subtle container dividers */
  --accent: oklch(0% 0 0);       /* Black brand color */

  /* Semantic */
  --success: oklch(55% 0.15 145); /* #22C55E */
  --danger: oklch(55% 0.15 25);   /* #EF4444 */
  --warning: oklch(65% 0.13 95);  /* #EAB308 */

  /* Layout specs */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font-display: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: oklch(10% 0 0);           /* Dark charcoal */
  --surface: oklch(15% 0 0);      /* Slightly lighter gray */
  --fg: oklch(95% 0 0);           /* Near white */
  --muted: oklch(55% 0 0);        /* Gray 400 */
  --border: oklch(22% 0 0);       /* Gray 800 */
  --accent: oklch(95% 0 0);       /* Brand color is white */
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { letter-spacing: -0.04em; }

p {
  color: var(--fg);
}

.text-muted {
  color: var(--muted);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-pill {
  border-radius: 999px;
}

.btn-success {
  background: var(--success);
  color: #white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

/* Input Fields */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: background 0.15s ease;
}

.input:focus {
  background: var(--border);
}

.input::placeholder {
  color: var(--muted);
}

/* Single Page App Layout */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* App Header Styling */
.app-header {
  height: 60px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.menu-toggle-btn:hover {
  background: var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  padding: 0;
  margin-bottom: 0;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 250px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.75rem;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease;
}

@media (min-width: 769px) {
  .sidebar.collapsed {
    width: 68px;
    padding: 1.5rem 0.5rem;
  }

  .sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
  }

  .sidebar.collapsed .nav-link-text {
    display: none;
  }

  .sidebar.collapsed .profile-details {
    display: none;
  }

  .sidebar.collapsed .profile-caret {
    display: none;
  }

  .sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 0.5rem 0;
  }

  .sidebar.collapsed .profile-menu {
    width: 200px;
    left: 60px;
    bottom: 10px;
    position: absolute;
  }
}

.profile-menu {
  position: absolute;
  bottom: 70px;
  left: 0.5rem;
  right: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border: 1px solid var(--border);
}

.profile-menu.show {
  display: flex;
}

.profile-menu-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-menu-item:hover {
  background: var(--surface);
}

.profile-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.profile-menu-item:hover svg {
  color: var(--fg);
}

.profile-menu-item.logout-item {
  color: var(--danger);
}

.profile-menu-item.logout-item svg {
  color: var(--danger);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--border);
  color: var(--fg);
}

.nav-link.active {
  background: var(--accent);
  color: var(--bg);
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  min-width: 0;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg);
  flex-shrink: 0;
}

.location-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.location-indicator:hover {
  background: var(--border);
}

.location-indicator svg {
  width: 16px;
  height: 16px;
}

.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2rem 2.5rem;
}

.view {
  display: none;
  animation: viewFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1100px;
  margin: 0 auto 0 0;
}

.view.active {
  display: block;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tabs switcher */
.tab-row {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.tab-btn {
  border: none;
  background: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: calc(var(--radius-sm) - 2px);
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--bg);
}

/* Filter Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: var(--border);
  color: var(--fg);
}

.chip.active {
  background: var(--accent);
  color: var(--bg);
}

/* Cards & Layout Items */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.card:hover {
  background: var(--border);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-salary {
  font-size: 1rem;
  font-weight: 800;
  color: var(--success);
}

.card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* Dialog Modals */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--fg);
  padding: 2.25rem;
  max-width: 550px;
  width: 90%;
  margin: auto;
  outline: none;
  animation: dialogScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 90vh;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: backdropFade 0.2s ease;
}

@keyframes dialogScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.dialog-close:hover {
  background: var(--surface);
  color: var(--fg);
}

/* Real-time Chat Layout */
.chat-wrapper {
  display: flex;
  height: calc(100vh - 10rem);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-aside {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-aside-header {
  padding: 1.25rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.chat-aside-list {
  display: flex;
  flex-direction: column;
}

.chat-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-channel:hover {
  background: var(--border);
}

.chat-channel.active {
  background: var(--border);
}

.chat-channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-channel-details {
  flex: 1;
  min-width: 0;
}

.chat-channel-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-channel-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-channel-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.chat-panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-panel-footer {
  padding: 1rem 1.5rem;
  background: var(--surface);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.chat-panel-footer input {
  flex: 1;
  background: var(--bg);
}

.bubble {
  max-width: 70%;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble-sent {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
  border-radius: 18px 18px 4px 18px;
}

.bubble-received {
  align-self: flex-start;
  background: var(--surface);
  color: var(--fg);
  border-radius: 18px 18px 18px 4px;
}

.bubble-meta {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 0.25rem;
  text-align: right;
}

.bubble-received .bubble-meta {
  text-align: left;
}

/* Leaflet map styles */
.map-container {
  height: 220px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1.25rem;
  z-index: 1;
}

/* Apply Dark filter on Leaflet tiles when in dark mode */
[data-theme="dark"] .leaflet-tile-container {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-bar {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
  background-color: var(--surface) !important;
  color: var(--fg) !important;
  border: none !important;
}

/* Stats dashboard */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.stat-num {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 850;
  margin-top: 0.25rem;
}

/* Mobile top bar and navigation */
.mobile-top-bar {
  display: none;
}

.mobile-nav-bar {
  display: none;
}

/* Floating Actions */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 50;
}

/* Rating interface */
.star-rating {
  display: flex;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.star {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s ease;
}

.star.active {
  color: var(--warning);
}

/* Utility layout cards */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.profile-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card-info h2 {
  font-size: 1.5rem;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease;
}

.profile-link-item:hover {
  background: var(--border);
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 1rem;
}

/* Badges styles */
.badge-open {
  color: var(--fg);
  background: var(--border);
}

.badge-assigned {
  color: var(--warning);
  background: var(--surface);
}

.badge-completed {
  color: var(--success);
  background: var(--surface);
}

.badge-cancelled {
  color: var(--danger);
  background: var(--surface);
}

.badge-arrived {
  color: oklch(55% 0.15 250);
  background: var(--surface);
}

.badge-working {
  color: oklch(60% 0.18 300);
  background: var(--surface);
}

.badge-payment {
  color: var(--warning);
  background: var(--surface);
}

/* Loading & Empty states */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--muted);
  gap: 1rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
  gap: 0.5rem;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Image selection lists */
.image-pick-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.image-preview-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-box .remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
}

/* Responsive queries */
@media (max-width: 768px) {
  #app {
    flex-direction: column;
  }

  .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    background: var(--surface);
    display: flex !important;
    padding: 1.5rem 0.75rem;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-top-bar {
    display: none !important;
  }

  .mobile-top-bar .logo {
    margin-bottom: 0;
    font-size: 1.35rem;
  }

  .mobile-nav-bar {
    display: block;
    background: var(--surface);
    border-top: 1px solid var(--border);
    height: 60px;
    flex-shrink: 0;
    z-index: 10;
  }

  .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
  }

  .mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: capitalize;
    cursor: pointer;
  }

  .mobile-nav-link.active {
    color: var(--fg);
  }

  .mobile-nav-link svg {
    width: 20px;
    height: 20px;
  }

  .view-container {
    padding: 1rem;
    padding-bottom: 2rem;
  }

  .top-bar {
    padding: 0.75rem 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chat-wrapper {
    height: calc(100vh - 12rem);
  }
}

.feedback-emoji {
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.5;
}

.feedback-emoji.active {
  opacity: 1;
  transform: scale(1.25);
}

.feedback-emoji:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Accessibility Enhancement Overrides */

/* Visible Focus Indicator */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Button overrides for custom interactive classes */
button.nav-link,
button.mobile-nav-link,
button.profile-menu-item,
button.sidebar-profile,
button.profile-link-item,
button.star,
button.feedback-emoji,
button.location-indicator,
button.card,
button.chat-channel {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: inherit;
  width: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  border-radius: inherit;
  transition: inherit;
  text-transform: inherit;
}

/* Specific display styles to match original divs */
button.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  width: 100%;
}

button.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
}

button.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

button.profile-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
}

button.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  width: 100%;
}

button.location-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border-radius: 999px;
}

button.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

button.chat-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  width: 100%;
  background: var(--surface);
}

button.star {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--border);
  display: inline-block;
}

button.feedback-emoji {
  display: inline-block;
}


