.priority-high,
.priority-medium,
.priority-low {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.priority-high { color: #c62828; }
.priority-medium { color: #ef6c00; }
.priority-low { color: #2e7d32; }

.badge-inprogress {
  background-color: #0d6efd;
  color: #ffffff;
}

.badge-pending {
  background-color: #6c757d;
  color: #ffffff;
}

.badge-completed {
  background-color: #198754;
  color: #ffffff;
}

.object-fit-cover {
  object-fit: cover;
}

.priority-indicator {
  font-size: 0.95rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 52px;
  height: 46px;
  padding: 0;
}

.theme-icon {
  display: none;
  line-height: 0;
}

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap");

html[data-theme="light"] .theme-icon--moon {
  display: inline-flex;
}

html[data-theme="dark"] .theme-icon--sun {
  display: inline-flex;
}

/* Global dark mode */
html[data-theme="dark"] body {
  background-color: #0f172a !important;
  color: #e2e8f0;
}

html[data-theme="dark"] .bg-light {
  background-color: #0f172a !important;
}

html[data-theme="dark"] .bg-white {
  background-color: #0b1224 !important;
  color: #e2e8f0;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu {
  background-color: #0b1224;
  color: #e2e8f0;
  border-color: #1f2a44;
}

/* Landing page */
.landing-root {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.18), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(14, 116, 144, 0.18), transparent 45%),
    linear-gradient(120deg, #f8fafc, #f1f5f9);
  border-radius: 24px;
  padding: 3.5rem 0 0;
  overflow: hidden;
}

.landing-hero {
  padding-bottom: 3.5rem;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.landing-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.landing-title-accent {
  display: inline-block;
  color: #0ea5a5;
}

.landing-lead {
  font-size: 1.1rem;
  color: #475569;
  max-width: 32rem;
}

.landing-cta {
  margin-top: 1.6rem;
}

.btn-landing-primary {
  background: #0ea5a5;
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.2);
}

.btn-landing-primary:hover {
  background: #0f766e;
  color: #fff;
}

.btn-landing-secondary {
  border: 1px solid #0f172a;
  color: #0f172a;
  background: transparent;
}

.btn-landing-secondary:hover {
  background: #0f172a;
  color: #fff;
}

.btn-landing-outline {
  border: 1px solid rgba(15, 118, 110, 0.4);
  color: #0f766e;
  background: transparent;
}

.landing-note {
  color: #64748b;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.landing-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.meta-value {
  font-weight: 600;
  color: #0f172a;
}

.landing-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);
  animation: floatIn 0.9s ease-out;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #0f172a;
}

.panel-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
  border-radius: 999px;
}

.panel-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.panel-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.panel-card h6 {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.panel-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.panel-hint {
  color: #64748b;
  font-size: 0.85rem;
}

.landing-section {
  padding: 3rem 0;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.landing-feature {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-feature i {
  font-size: 1.6rem;
  color: #0ea5a5;
}

.landing-feature h5 {
  margin-top: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.landing-feature p {
  color: #64748b;
  margin: 0;
}

.landing-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.landing-steps {
  background: rgba(15, 23, 42, 0.03);
}

.landing-subtitle {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.steps-list {
  display: grid;
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.step-index {
  font-weight: 700;
  color: #0ea5a5;
  font-size: 1.2rem;
}

.step-card p {
  margin: 0;
  color: #64748b;
}

.landing-cta-final {
  padding: 3rem 0 4rem;
}

.cta-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 22px;
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-card p {
  color: #cbd5f5;
  margin: 0.6rem 0 0;
}

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

@media (max-width: 768px) {
  .landing-root {
    border-radius: 16px;
    padding-top: 2.5rem;
  }
  .landing-hero {
    padding-bottom: 2rem;
  }
  .panel-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[data-theme="dark"] .dropdown-menu .dropdown-item {
  color: #e2e8f0;
}

html[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .dropdown-menu .dropdown-item:focus {
  background-color: #111b34;
  color: #f8fafc;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-check-input {
  background-color: #0f172a;
  color: #e2e8f0;
  border-color: #1f2a44;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .form-text {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .observation-card,
html[data-theme="dark"] .help-card,
html[data-theme="dark"] .filters-panel,
html[data-theme="dark"] .viewer-panel {
  background-color: #0b1224;
  color: #e2e8f0;
  border-color: #1f2a44;
}

html[data-theme="dark"] .observation-card .text-muted,
html[data-theme="dark"] .help-card p,
html[data-theme="dark"] .filters-panel .form-label,
html[data-theme="dark"] .filters-panel small {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .filter-multilist,
html[data-theme="dark"] .filter-multilist .form-check,
html[data-theme="dark"] .filter-multilist .form-check-label {
  background-color: transparent;
  color: #e2e8f0;
}

html[data-theme="dark"] .plan-viewer__header,
html[data-theme="dark"] .plan-viewer__toolbar {
  background-color: #0b1224;
  color: #e2e8f0;
  border-color: #1f2a44;
}

html[data-theme="dark"] .plan-viewer__header .text-muted,
html[data-theme="dark"] .plan-viewer__toolbar .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .plan-viewer__header .btn-primary,
html[data-theme="dark"] .plan-viewer__header .btn-outline-primary,
html[data-theme="dark"] .plan-viewer__header .btn-outline-secondary,
html[data-theme="dark"] .plan-viewer__toolbar .btn-outline-secondary {
  border-color: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .plan-viewer__header .btn-outline-primary,
html[data-theme="dark"] .plan-viewer__header .btn-outline-secondary,
html[data-theme="dark"] .plan-viewer__toolbar .btn-outline-secondary {
  background-color: transparent;
}

html[data-theme="dark"] .observation-photo {
  background-color: #0f172a;
  border-color: #1f2a44;
  color: #94a3b8;
}

html[data-theme="dark"] .filters-panel {
  background-color: #0b1224;
  border-color: #1f2a44;
  color: #e2e8f0;
}

html[data-theme="dark"] .filters-panel .filter-section + .filter-section {
  border-top-color: #1f2a44;
}

html[data-theme="dark"] .filter-multilist {
  background-color: #0f172a;
  border-color: #1f2a44;
}

html[data-theme="dark"] .filters-panel .form-check-label,
html[data-theme="dark"] .filters-panel .form-label,
html[data-theme="dark"] .filters-panel .btn-link,
html[data-theme="dark"] .filters-panel .text-muted {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .filters-panel .badge.text-bg-secondary {
  background-color: #1f2a44;
  color: #e2e8f0;
}

html[data-theme="dark"] .report-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .recipient-board,
html[data-theme="dark"] .recipient-group {
  background-color: #0b1224;
  border-color: #1f2a44;
  color: #e2e8f0;
}

html[data-theme="dark"] .recipient-tags {
  background-color: #0f172a;
  border-color: #1f2a44;
}

html[data-theme="dark"] .recipient-input {
  background-color: transparent;
  color: #e2e8f0;
}

html[data-theme="dark"] .recipient-chip {
  background-color: #111b34;
  border-color: #1f2a44;
  color: #e2e8f0;
}

html[data-theme="dark"] .recipient-chip:hover {
  background-color: #1f2a44;
}

html[data-theme="dark"] .preview-item {
  background-color: #0b1224;
  border-color: #1f2a44;
  color: #e2e8f0;
}

html[data-theme="dark"] .preview-thumb {
  background-color: #0f172a;
  border-color: #1f2a44;
  color: #94a3b8;
}

html[data-theme="dark"] .preview-meta {
  color: #94a3b8;
}

html[data-theme="dark"] .signature-pad-wrapper {
  background-color: #0f172a;
  border-color: #1f2a44;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-light,
html[data-theme="dark"] .border-secondary,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table > :not(caption) > * > * {
  border-color: #1f2a44 !important;
}

html[data-theme="dark"] .table-light {
  --bs-table-bg: #0f172a;
  --bs-table-color: #e2e8f0;
}

html[data-theme="dark"] .table {
  --bs-table-bg: #0b1224;
  --bs-table-color: #e2e8f0;
  --bs-table-striped-bg: #0f172a;
  --bs-table-striped-color: #e2e8f0;
  --bs-table-hover-bg: #111b34;
  --bs-table-hover-color: #e2e8f0;
  color: #e2e8f0;
  background-color: #0b1224;
}

html[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: #0b1224;
}

html[data-theme="dark"] .table thead th {
  background-color: #0f172a;
  color: #e2e8f0;
}

html[data-theme="dark"] .badge.bg-light.text-dark {
  background-color: #1f2a44 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .btn.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

html[data-theme="dark"] .btn.btn-primary:hover,
html[data-theme="dark"] .btn.btn-primary:focus {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

html[data-theme="dark"] .plan-preview-img {
  filter: brightness(0.85) contrast(0.95);
}

html[data-theme="dark"] #planImage {
  filter: brightness(0.85) contrast(0.95);
}

html[data-theme="dark"] #company-profile-preview .card-header,
html[data-theme="dark"] #company-profile-preview .preview-header-bar {
  background-color: #0b1224 !important;
  border-bottom-color: #1f2a44;
}

html[data-theme="dark"] #company-profile-preview .preview-readonly-badge {
  background-color: #1f2a44 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] #company-profile-preview .preview-header {
  background-color: #0f172a;
  border-color: #1f2a44;
}

html[data-theme="dark"] .navbar.bg-primary {
  background-color: #0b1224 !important;
}

html[data-theme="dark"] .btn-outline-light {
  color: #e2e8f0;
  border-color: #334155;
}

html[data-theme="dark"] .btn-outline-light:hover {
  background-color: #1f2a44;
  border-color: #1f2a44;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-check-input {
  background-color: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #94a3b8;
}

html[data-theme="dark"] input[type="file"]::file-selector-button {
  background-color: #1f2a44;
  color: #e2e8f0;
  border: 1px solid #334155;
}

html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button {
  background-color: #1f2a44;
  color: #e2e8f0;
  border: 1px solid #334155;
}

html[data-theme="dark"] input[type="file"]::file-selector-button:hover,
html[data-theme="dark"] input[type="file"]::file-selector-button:focus {
  background-color: #0b1224;
  color: #e2e8f0;
  border-color: #334155;
}

html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button:hover,
html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button:focus {
  background-color: #0b1224;
  color: #e2e8f0;
  border-color: #334155;
}
