/* ==========================================================
   HelloProMark - Modern SaaS Dashboard Styling
   Dedicated to Buyer, Seller, and Admin Management Portals
   Theme: Deep Navy Sidebar (#0A192F), Royal Blue Highlights (#0B63E5), Warm Gold Accents (#F59E0B)
   ========================================================== */

/* Universal Form Placeholder Styling - Identifiable Grey Placeholder */
::placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-webkit-input-placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-moz-placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

:-ms-input-placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #8c98a4 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-body);
  position: relative;
  overflow-x: hidden;
}

/* Sidebar */
.dashboard-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background-color: var(--navy-primary);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  transition: var(--transition);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav {
  padding: 16px 12px;
  list-style: none;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  font-weight: 700;
  padding: 12px 14px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 3px;
  transition: var(--transition);
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: #64748B;
  transition: var(--transition);
}

.sidebar-link:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-link:hover i {
  color: var(--accent-gold-light);
}

.sidebar-link.active {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.35);
}

.sidebar-link.active i {
  color: #FFFFFF;
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.user-info-text {
  overflow: hidden;
}

.user-name-label {
  font-weight: 600;
  font-size: 0.86rem;
  color: #FFFFFF;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main Dashboard Body */
.dashboard-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Dashboard Topbar */
.dashboard-topbar {
  background: #FFFFFF;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  width: 100%;
  box-sizing: border-box;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-heading);
  margin: 0;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-bell-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.notification-bell-btn:hover {
  background-color: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

.notification-count-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Dashboard Content Area */
.dashboard-content {
  padding: 24px 28px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Stat Cards */
.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 99, 229, 0.35);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon-blue {
  background-color: #EFF6FF;
  color: #0B63E5;
}

.stat-icon-emerald {
  background-color: #ECFDF5;
  color: #10B981;
}

.stat-icon-gold {
  background-color: #FEF3C7;
  color: #D97706;
}

.stat-icon-purple {
  background-color: #F5F3FF;
  color: #8B5CF6;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dashboard Card */
.dashboard-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.dashboard-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
}

.dashboard-card-header h5 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* Contact Lead Box Pair */
.contact-pair-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 991.98px) {
  .contact-pair-wrap {
    grid-template-columns: 1fr;
  }
}

.contact-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
  height: 100%;
}

.contact-box:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-box-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tables */
.table,
.table-custom {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
  border-collapse: separate;
  border-spacing: 0;
}

.table-custom th,
.table th {
  background-color: #F8FAFC;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 700;
  padding: 14px 16px;
  border-top: none;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}

.table-custom td,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #EDF2F7;
  font-size: 0.88rem;
  vertical-align: middle;
  color: #1E293B;
}

.table-custom tbody tr:hover,
.table tbody tr:hover {
  background-color: #F8FAFC;
}

.table-custom .text-end,
.table .text-end {
  text-align: right;
  white-space: nowrap;
}

.table-custom .btn-group,
.table .btn-group {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-custom .btn-group .btn,
.table .btn-group .btn {
  padding: 5px 9px;
  font-size: 0.82rem;
}

/* Intermediary Banner */
.intermediary-banner {
  background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%) !important;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.12);
}

/* Empty States */
.empty-state-wrap {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.empty-state-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.empty-state-text {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 0.9rem;
}

/* Responsive Sidebar Toggle & Mobile Layout */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    width: 260px;
    max-width: 80vw;
  }

  .dashboard-sidebar.show-sidebar {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .dashboard-topbar {
    padding: 12px 16px !important;
    width: 100% !important;
  }

  .topbar-title {
    font-size: 1.15rem !important;
  }

  .dashboard-content {
    padding: 16px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .intermediary-banner {
    padding: 20px 18px !important;
  }
}

@media (max-width: 767.98px) {
  .dashboard-content {
    padding: 14px 10px !important;
  }

  .stat-card {
    padding: 14px 12px !important;
  }

  .stat-value {
    font-size: 1.5rem !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
  }

  .intermediary-banner {
    padding: 16px 14px !important;
  }

  .intermediary-banner h3 {
    font-size: 1.25rem !important;
  }

  .intermediary-banner .btn {
    width: 100%;
    margin-top: 10px;
  }
}
