/* WingPal Logged-In User Dashboard Styles */

.dashboard-body {
  background-color: #F8FAFC;
  min-height: 100vh;
}

.dashboard-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dash-nav-center {
  display: flex;
  align-items: center;
}

.dash-nav-link {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  position: relative;
  padding: 8px 12px;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Location Picker Pill */
.location-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.location-picker-btn:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

.location-pin-icon {
  width: 17px;
  height: 17px;
  color: #0D9488;
}

.chevron-down-icon {
  width: 14px;
  height: 14px;
  color: #64748B;
}

/* Notification Bell */
.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #334155;
  transition: background-color 0.15s ease;
}

.notification-btn:hover {
  background-color: #F1F5F9;
}

.bell-icon {
  width: 22px;
  height: 22px;
}

.notification-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background-color: #EA580C;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-full);
}

/* User Header Avatar */
.user-avatar-link {
  display: block;
}

.user-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid #0D9488;
  transition: transform 0.15s ease;
}

.user-header-avatar:hover {
  transform: scale(1.05);
}

/* Dashboard Main */
.dashboard-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ==========================================================================
   WELCOME BANNER CARD
   ========================================================================== */
.welcome-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  background-color: #FFFFFF;
  margin-bottom: 28px;
  height: 140px;
}

.welcome-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  z-index: 1;
}

.welcome-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 34%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 2;
}

.welcome-banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
}

.welcome-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

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

.welcome-heading {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wave-icon {
  font-size: 24px;
  display: inline-block;
}

.welcome-subtext {
  font-size: 15px;
  color: #64748B;
  font-weight: 500;
}

/* ==========================================================================
   QUICK ACTIONS ROW (3 CARDS)
   ========================================================================== */
.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.quick-action-card {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  transition: all 0.2s ease;
  position: relative;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-buddies {
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
}

.action-wings {
  background-color: #FFF7ED;
  border: 1px solid #FFEDD5;
}

.action-create {
  background-color: #FFFFFF;
  border: 2px solid #0D9488;
  cursor: pointer;
  justify-content: center;
}

.action-create-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-cal-icon {
  width: 26px;
  height: 26px;
  color: #0D9488;
}

.create-act-text {
  font-size: 17px;
  font-weight: 700;
  color: #0D9488;
}

.action-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  color: #FFFFFF;
}

.action-icon-circle svg {
  width: 24px;
  height: 24px;
}

.bg-teal {
  background-color: #0D9488;
}

.bg-orange {
  background-color: #EA580C;
}

.action-card-text {
  flex-grow: 1;
}

.action-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.action-card-sub {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.action-chevron-pill {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.action-chevron-pill svg {
  width: 16px;
  height: 16px;
}

.pill-teal svg {
  color: #0D9488;
}

.pill-orange svg {
  color: #EA580C;
}

/* ==========================================================================
   TWO-COLUMN DASHBOARD GRID
   ========================================================================== */
.dashboard-columns-grid {
  display: grid;
  grid-template-columns: 1.9fr 1.05fr;
  gap: 28px;
  align-items: start;
}

/* Section Headers & Filter Pills */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0F172A;
}

.dash-filter-pills {
  display: flex;
  align-items: center;
  background-color: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}

.dash-filter-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.dash-filter-pill.active {
  background-color: #E6F7F5;
  color: #0D9488;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.12);
}

/* Upcoming Cards Grid (2 across) */
.upcoming-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.upcoming-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #CCFBF1;
}

.upcoming-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

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

.floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-buddy-float {
  background-color: rgba(255, 255, 255, 0.95);
  color: #0D9488;
}

.badge-wing-float {
  background-color: rgba(255, 255, 255, 0.95);
  color: #EA580C;
}

.badge-mini-icon {
  width: 14px;
  height: 14px;
}

.btn-more-dots {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.btn-more-dots:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.upcoming-card-body {
  padding: 16px;
}

.upcoming-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.upcoming-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 6px;
}

.upcoming-meta-icon {
  width: 14px;
  height: 14px;
  color: #64748B;
  flex-shrink: 0;
}

.upcoming-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
}

.btn-card-view {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #0D9488;
  background-color: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.btn-card-view:hover {
  background-color: #0D9488;
  color: #FFFFFF;
}

/* Recommended Cards Grid (3 across) */
.recommended-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rec-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #CCFBF1;
}

.rec-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
}

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

.btn-rec-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-rec-favorite svg {
  width: 16px;
  height: 16px;
}

.btn-rec-favorite:hover {
  color: #EF4444;
  background-color: #FFFFFF;
}

.rec-card-body {
  padding: 14px;
}

.rec-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.rec-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}

.rec-meta-icon {
  width: 13px;
  height: 13px;
  color: #64748B;
}

/* ==========================================================================
   RIGHT COLUMN: SIDE PANELS (MESSAGES & ACTIVITY)
   ========================================================================== */
.side-panel-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.side-panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
}

.side-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0D9488;
}

.side-panel-link:hover {
  color: #0F766E;
}

/* Chat Threads */
.chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-thread-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.chat-thread-item:hover {
  opacity: 0.85;
}

.chat-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.chat-online-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background-color: #EA580C;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-full);
}

.chat-info-col {
  flex-grow: 1;
  min-width: 0;
}

.chat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.chat-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

.chat-timestamp {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

.chat-snippet {
  font-size: 13px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Activity Notifications */
.activity-notif-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-notif-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.activity-notif-item:hover {
  opacity: 0.85;
}

.notif-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-teal-icon {
  background-color: #0D9488;
  color: #FFFFFF;
}

.bg-teal-icon svg {
  width: 20px;
  height: 20px;
}

.bg-light-teal-cal {
  background-color: #E6F7F5;
  border: 1px solid #CCFBF1;
}

.bg-light-teal-cal svg {
  width: 20px;
  height: 20px;
}

.notif-info-col {
  flex-grow: 1;
  min-width: 0;
}

.notif-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.notif-sub {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.notif-chevron {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-columns-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Pal dashboard layout */
.pal-dashboard .dashboard-columns-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.05fr);
}

.pal-dashboard .upcoming-cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pal-dashboard .recommended-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pal-dashboard .dash-section-header,
.pal-dashboard .upcoming-bottom-row {
  gap: 10px;
  flex-wrap: wrap;
}

.pal-dashboard .upcoming-bottom-row {
  margin-top: 0;
  padding-top: 0;
}

.pal-dashboard :is(.upcoming-meta-row, .rec-meta-row, .chat-info-col, .notif-info-col) {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .pal-dashboard .dashboard-columns-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pal-dashboard .dashboard-header .nav-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 4px 12px;
    padding-block: 8px;
  }

  .pal-dashboard .dashboard-header .nav-left {
    display: flex;
    min-width: 0;
  }

  .pal-dashboard .dash-nav-right {
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
  }

  .pal-dashboard .dash-nav-link {
    padding: 10px 6px;
    font-size: 14px;
  }

  .pal-dashboard .dash-nav-right > :not(.location-picker-btn),
  .pal-dashboard .location-picker-btn svg {
    flex-shrink: 0;
  }

  .pal-dashboard .location-picker-btn {
    min-width: 0;
    padding: 6px 8px;
    text-align: left;
  }

  .pal-dashboard .location-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .pal-dashboard .dashboard-main,
  .pal-dashboard .dashboard-header .nav-container {
    padding-inline: 16px;
  }

  .pal-dashboard .welcome-banner-card {
    height: auto;
    min-height: 118px;
  }

  .pal-dashboard .welcome-banner-content {
    gap: 12px;
    padding: 16px;
  }

  .pal-dashboard .welcome-banner-overlay {
    background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, .88) 78%, rgba(255, 255, 255, .68));
  }

  .pal-dashboard .welcome-avatar-wrap {
    width: 48px;
    height: 48px;
  }

  .pal-dashboard .welcome-heading {
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .pal-dashboard .dash-filter-pill {
    padding-inline: 10px;
  }

  .pal-dashboard .upcoming-cards-grid,
  .pal-dashboard .recommended-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.pal-dashboard .dashboard-recommendation-location {
  display: flex;
  margin-bottom: 14px;
}

.pal-dashboard .dashboard-recommendation-location .location-text {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .pal-dashboard .dashboard-header .nav-container {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .pal-dashboard .dash-nav-right {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .pal-dashboard .dashboard-header .brand-logo img {
    width: clamp(76px, 24vw, 100px);
    height: auto;
  }

  .pal-dashboard .dashboard-header .nav-container {
    column-gap: 4px;
  }

  .pal-dashboard .dash-nav-right {
    gap: 2px;
  }
}
