/* ==========================================================================
   Find A Decorator — Customer Portal Exact Base44 Theme
   Path: customer/assets/css/style.css
   ========================================================================== */

:root {
  --background: 36 43% 97%;          /* #faf7f2 */
  --foreground: 219 47% 20%;          /* #1b2a4a */
  --card: 0 0% 100%;                  /* #ffffff */
  --card-foreground: 219 47% 20%;
  --primary: 219 47% 20%;             /* #1b2a4a */
  --primary-foreground: 0 0% 100%;    /* #ffffff */
  --accent: 43 62% 44%;               /* #b6831c */
  --accent-foreground: 0 0% 100%;
  --muted: 36 20% 93%;                /* #eee9e0 */
  --muted-foreground: 36 12% 40%;     /* #736b5e */
  --border: 36 18% 88%;               /* #e6ded4 */
  --input: 36 18% 88%;                /* #e6ded4 */
  --ring: 219 47% 20%;                /* #1b2a4a */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e6ded4;
  --sidebar-accent: #eee9e0;
  --sidebar-accent-fg: #1b2a4a;
  --sidebar-fg: #1b2a4a;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.form-label {
  font-size: 14px;
}

/* Backgrounds & Text */
.bg-background {
  background-color: hsl(var(--background)) !important;
}

.bg-card {
  background-color: hsl(var(--card)) !important;
}

.text-foreground {
  color: hsl(var(--foreground)) !important;
}

.text-primary {
  color: hsl(var(--primary)) !important;
}

.text-accent {
  color: hsl(var(--accent)) !important;
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground)) !important;
}

.border-border {
  border-color: hsl(var(--border)) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Form Controls (Inputs, Selects, Textareas) */
.form-control, .form-select {
  background-color: hsl(var(--card)) !important;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.375rem !important; /* 6px */
  font-size: 0.875rem !important;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 0.5rem 0.75rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
  background-color: #ffffff !important;
  border-color: hsl(var(--ring)) !important;
  box-shadow: 0 0 0 1px hsl(var(--ring)) !important;
  outline: none !important;
  color: hsl(var(--foreground)) !important;
}

.form-control::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.8;
}

.form-check-input {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
  cursor: pointer;
}

.form-check-input:checked {
  background-color: hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
}

.form-check-input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 1px hsl(var(--ring));
  outline: none;
}

/* Buttons */
.btn-primary-custom {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: 1px solid hsl(var(--primary)) !important;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active {
  background-color: hsl(219 47% 14%) !important;
  border-color: hsl(219 47% 14%) !important;
  color: #ffffff !important;
}

.btn-accent-custom {
  background-color: hsl(var(--accent)) !important;
  color: #ffffff !important;
  border: 1px solid hsl(var(--accent)) !important;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn-accent-custom:hover,
.btn-accent-custom:focus,
.btn-accent-custom:active {
  background-color: hsl(43 62% 38%) !important;
  border-color: hsl(43 62% 38%) !important;
  color: #ffffff !important;
}

.btn-outline-custom {
  background-color: transparent !important;
  color: hsl(var(--foreground)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:active {
  background-color: hsl(var(--muted)) !important;
  border-color: hsl(var(--border)) !important;
  color: hsl(var(--foreground)) !important;
}

/* Sidebar Layout */
.dashboard-sidebar {
  width: 16rem; /* 256px */
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 40;
}

.sidebar-header {
  height: 4rem; /* 64px */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo-icon {
  display: grid;
  height: 2rem;
  width: 2rem;
  place-items: center;
  border-radius: 0.375rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.sidebar-logo-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  color: hsl(var(--primary));
  font-size: 0.875rem;
}

.sidebar-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-section-title {
  padding: 0 0.75rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: hsla(219, 47%, 20%, 0.8);
  transition: background-color 0.15s ease, color 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-nav-link i, .sidebar-nav-link svg {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
}

.sidebar-nav-link:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.sidebar-nav-link.active {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-fg);
  font-weight: 600;
}

.sidebar-footer-box {
  padding: 0.75rem;
  border-top: 1px solid var(--sidebar-border);
  background-color: var(--sidebar-bg);
}

.sidebar-back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.15s ease;
}

.sidebar-back-link:hover {
  color: hsl(var(--foreground));
}

/* Topbar Header */
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 4rem; /* 64px */
  background-color: hsla(36, 43%, 97%, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .dashboard-topbar {
    padding: 0 1.5rem;
  }
}

.notification-btn {
  position: relative;
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--sidebar-border);
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.notification-btn:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted));
}

.notification-counter {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Avatar Dropdown Button in Topbar */
.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.user-avatar-btn::after,
.user-avatar-btn.dropdown-toggle::after {
  display: none !important;
}

.user-avatar-btn:hover, .user-avatar-btn:focus {
  background-color: hsla(36, 20%, 90%, 0.6);
  border-color: var(--sidebar-border);
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Cards & Shadow Soft */
.card-shadow-soft {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-shadow-soft:hover {
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}

.quote-card-selected {
  border: 1.5px solid hsl(var(--accent)) !important;
  box-shadow: 0 0 0 3px hsla(43, 62%, 44%, 0.2) !important;
}

/* Filter Pills */
.filter-pill {
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.filter-pill.active {
  border-color: hsl(var(--primary)) !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

/* View Details / Compare Action Button */
.btn-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background-color: transparent;
  color: hsl(var(--foreground));
  font-size: 0.75rem;
  font-weight: 500;
  height: 2rem;
  padding: 0 0.75rem;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.btn-view-details:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--accent));
  color: #ffffff;
}

/* Status Badges */
.badge-residential {
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsla(43, 62%, 44%, 0.1);
  color: hsl(var(--accent));
}

.badge-commercial {
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsla(219, 47%, 20%, 0.1);
  color: hsl(var(--primary));
}

.badge-receiving-quotes {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #fde68a; /* amber-200 */
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #fffbeb; /* amber-50 */
  color: #b45309; /* amber-700 */
}

.badge-published {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #bfdbfe; /* blue-200 */
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #eff6ff; /* blue-50 */
  color: #1d4ed8; /* blue-700 */
}

.badge-submitted {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #a7f3d0; /* emerald-200 */
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #ecfdf5; /* emerald-50 */
  color: #047857; /* emerald-700 */
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(146 42% 30% / 0.1);
  color: #2c6d48;
}

/* Toast alert notification styling */
.toast-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: hsl(var(--primary));
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  z-index: 9999;
  animation: slideUpFadeIn 0.25s ease forwards;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    display: none;
  }
}
