@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
:root {
  --lux-dark: #0b1e33;
  --lux-forest: #1d4d7a;
  --lux-sage: #2a6fb0;
  --lux-mint: #66b8ff;
  --lux-lime: #a6d9ff;
  --lux-ivory: #f3f8ff;
  --lux-glass: #f4f8ff;
  --lux-card: #ffffff;
  --lux-card-soft: #edf4ff;
  --lux-shadow: 0 18px 50px rgba(8, 24, 40, 0.12);
  --lux-radius: 22px;
  --lux-border: rgba(29, 77, 122, 0.16);
  --lux-accent: #2b78c9;
  --lux-text: #0a1a2b;
  --lux-subtext: rgba(10, 26, 43, 0.6);
  --lux-bg: #eaf2ff;
  --lux-surface: #ffffff;
}

body[data-theme="dark"] {
  --lux-glass: #0f1b2b;
  --lux-border: rgba(102, 184, 255, 0.18);
  --lux-text: #f2f7ff;
  --lux-subtext: rgba(242, 247, 255, 0.62);
  --lux-bg: #0a111c;
  --lux-surface: #0f1b2b;
  --lux-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --lux-card: #111f33;
  --lux-card-soft: #15263d;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--lux-text);
  min-height: 100vh;
  background: var(--lux-bg);
}

html,
body {
  height: 100%;
}

body[data-theme="dark"] {
  background: #0b1411;
}

h1,
.card-title,
.brand-title,
.topbar-title {
  font-family: 'Poppins', sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  width: 290px;
  flex: 0 0 290px;
  background: #fafbfd;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(23, 107, 70, 0.1);
  box-shadow: 0 18px 40px rgba(14, 46, 35, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 120, 201, 0.45) transparent;
}

body[data-theme="dark"] .sidebar {
  background: #0f1a15;
}

.sidebar::-webkit-scrollbar {
  width: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(43, 120, 201, 0.45);
  border-radius: 999px;
}

body[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
  background: rgba(102, 184, 255, 0.45);
}

.sidebar__brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lux-mint) 0%, var(--lux-forest) 100%);
  display: inline-block;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.brand-logo img {
  height: 65px;
  width: auto;
  display: block;
}

.sidebar__profile {
  background: rgba(102, 184, 255, 0.9);
  border: 1px solid rgba(43, 120, 201, 0.18);
  border-radius: 18px 18px 0 0;
  margin-top: auto;
  position: sticky;
  bottom: 0rem;
  overflow: visible;
}

.sidebar__profile.mx-4 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lux-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.profile-name {
  font-weight: 600;
}

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

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
}

.profile-trigger span {
  display: grid;
}

.profile-trigger i {
  margin-left: auto;
  color: var(--lux-subtext);
}

.profile-menu {
  border-radius: 16px;
  border: 1px solid rgba(23, 107, 70, 0.12);
  box-shadow: 0 18px 40px rgba(14, 46, 35, 0.12);
  padding: 0.4rem 0;
  min-width: 220px;
}

.profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

 .nav-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(23, 107, 70, 0.12);
  padding: 0.5rem 0.65rem;
  box-shadow: 0 12px 28px rgba(14, 46, 35, 0.08);
}

.nav-section__header {
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lux-text);
  font-weight: 600;
}

.nav-section__header span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: rgba(10, 26, 43, 0.7);
  padding: 0.35rem 1.8rem;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lux-text);
  background: rgba(102, 184, 255, 0.2);
}

.content {
  min-height: 100vh;
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--lux-border);
}

body[data-theme="dark"] .topbar {
  background: rgba(15, 42, 29, 0.86);
}

.topbar-title {
  font-size: 1.4rem;
}

.topbar-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--lux-glass);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.search-pill input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--lux-text);
  width: 220px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(23, 107, 70, 0.12);
  background: var(--lux-glass);
  display: grid;
  place-items: center;
  color: var(--lux-text);
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--lux-mint);
  border-radius: 50%;
  position: absolute;
  margin-left: 18px;
  margin-top: -16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fffb 100%);
  border-radius: var(--lux-radius);
  padding: 2rem;
  border: 1px solid rgba(23, 107, 70, 0.12);
  box-shadow: 0 20px 50px rgba(14, 46, 35, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-card__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-card h1 {
  font-size: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--lux-subtext);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.metric {
  background: rgba(102, 184, 255, 0.14);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 120, 201, 0.2);
}

.metric span {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.metric strong {
  font-size: 1.2rem;
  display: block;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

   .glass-card {
  background: #ffffff;
  border-radius: var(--lux-radius);
  padding: 1.5rem;
  border: 1px solid rgba(23, 107, 70, 0.12);
  box-shadow: 0 18px 40px rgba(14, 46, 35, 0.1);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.lux-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.lux-list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--lux-subtext);
}

.lux-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lux-sage);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.btn-lux {
  background: linear-gradient(135deg, var(--lux-accent) 0%, var(--lux-forest) 100%);
  border: none;
  color: #fff;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(14, 46, 35, 0.14);
}

.btn-ghost {
  border: 1px solid rgba(23, 107, 70, 0.16);
  background: transparent;
  color: var(--lux-text);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

.pulse {
  margin-bottom: 1rem;
}

.pulse-label {
  font-size: 0.8rem;
  color: var(--lux-subtext);
}

.pulse-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.pulse-bar {
  height: 8px;
  background: rgba(116, 224, 182, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.pulse-bar span {
  display: block;
  height: 100%;
  background: var(--lux-accent);
}

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

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.discussion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.discussion-thread {
  display: grid;
  gap: 1.2rem;
}

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

.thread-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(23, 107, 70, 0.12);
  background: #fbfdfb;
}

.thread-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lux-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: 0 0 auto;
}

.thread-meta {
  font-size: 0.8rem;
  color: var(--lux-subtext);
  margin-bottom: 0.35rem;
}

.thread-body p {
  margin: 0;
}

.invoice-card {
  background: #ffffff;
  border-radius: var(--lux-radius);
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

.invoice-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.invoice-company {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lux-accent);
}

.invoice-title {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: rgba(13, 34, 27, 0.5);
  font-weight: 700;
}

.invoice-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.invoice-meta-row {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.invoice-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lux-subtext);
  margin-bottom: 0.4rem;
}

.invoice-due-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d04646;
}

.invoice-bill {
  margin-top: 2rem;
}

.invoice-bill-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.invoice-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.invoice-total strong {
  font-size: 1.5rem;
  color: var(--lux-accent);
}

.progress-value {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--lux-accent);
}

.invoice-menu {
  border-radius: 14px;
  border: 1px solid rgba(23, 107, 70, 0.12);
  box-shadow: 0 18px 40px rgba(14, 46, 35, 0.12);
  padding: 0.5rem 0;
}

.invoice-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.invoice-action {
  position: relative;
  z-index: 2;
}

.invoice-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.invoice-action .dropdown-menu {
  right: 100%;
  left: auto;
  margin-top: 0;
  margin-right: 0.6rem;
  z-index: 1060;
}

.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .table {
  margin-bottom: 0;
  min-width: 100%;
}

@media (max-width: 992px) {
  .table-responsive .table {
    min-width: 760px;
  }
}

@media (min-width: 992px) {
  .table-responsive {
    overflow: visible;
  }
}

.content {
  overflow-x: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1 1 auto;
}

.app-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.attachment-list,
.invite-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.attachment-chip,
.invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(116, 224, 182, 0.3);
  font-size: 0.75rem;
  color: var(--lux-text);
}

.chip-remove {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
}
.report-form {
  position: relative;
}

.report-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(102, 184, 255, 0.22);
  color: var(--lux-text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.report-history .card-title {
  margin-bottom: 1.2rem;
}

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

.report-item {
  border-radius: 16px;
  border: 1px solid rgba(43, 120, 201, 0.16);
  background: rgba(102, 184, 255, 0.1);
  padding: 1rem;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.report-title {
  font-weight: 600;
}

.report-meta {
  font-size: 0.8rem;
  color: var(--lux-subtext);
}

.report-date {
  font-size: 0.8rem;
  color: var(--lux-subtext);
}

.report-section {
  margin-bottom: 0.7rem;
}

.report-section strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lux-subtext);
  margin-bottom: 0.35rem;
}

.report-section p {
  margin: 0;
}

.report-section.danger p {
  color: #d04646;
}

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

.stat {
  background: rgba(102, 184, 255, 0.12);
  border-radius: 14px;
  padding: 0.8rem;
  border: 1px solid rgba(43, 120, 201, 0.16);
}

.stat span {
  font-size: 0.7rem;
  color: var(--lux-subtext);
}

.stat strong {
  font-size: 1.2rem;
}

.timeline {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
  flex: 1;
}

.timeline-item {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(102, 184, 255, 0.16);
}

.badge-lux {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lux-accent);
  white-space: nowrap;
}

.donut-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--lux-subtext);
  margin-top: 1rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.dot-one {
  background: var(--lux-accent);
}

.dot-two {
  background: var(--lux-sage);
}

.dot-three {
  background: var(--lux-mint);
}

.table {
  color: var(--lux-text);
}

.table thead {
  color: var(--lux-subtext);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.table tbody tr {
  border-top: 1px solid var(--lux-border);
}

body[data-theme="dark"] .table {
  color: var(--lux-text);
}

body[data-theme="dark"] .table thead {
  color: var(--lux-subtext);
}

body[data-theme="dark"] .table tbody tr {
  border-top-color: var(--lux-border);
}

body[data-theme="dark"] .table th,
body[data-theme="dark"] .table td,
body[data-theme="dark"] .table-lux th,
body[data-theme="dark"] .table-lux td {
  color: var(--lux-text);
}

body[data-theme="dark"] .text-muted {
  color: rgba(247, 250, 247, 0.6) !important;
}

body[data-theme="dark"] .table-lux tbody tr {
  border-top-color: var(--lux-border);
}

body[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--lux-text);
  box-shadow: inset 0 0 0 9999px rgba(18, 36, 27, 0.35);
}

body[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px rgba(22, 45, 33, 0.55);
}

.chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(102, 184, 255, 0.22);
  color: var(--lux-text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.chip-success {
  background: rgba(102, 184, 255, 0.35);
}

.chip-alert {
  background: rgba(245, 158, 11, 0.2);
}

.lux-form .form-control,
.lux-form .form-select,
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 107, 70, 0.14);
  color: var(--lux-text);
  border-radius: 14px;
}

body[data-theme="dark"] .lux-form .form-control,
body[data-theme="dark"] .lux-form .form-select,
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
  background-color: rgba(12, 24, 18, 0.85);
  border-color: var(--lux-border);
  color: var(--lux-text);
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-select::placeholder {
  color: var(--lux-subtext);
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
  border-color: rgba(116, 224, 182, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(116, 224, 182, 0.18);
  background-color: rgba(14, 30, 22, 0.95);
  color: var(--lux-text);
}

body[data-theme="dark"] .lux-form .form-select,
body[data-theme="dark"] .form-select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(247, 250, 247, 0.5) 50%),
    linear-gradient(135deg, rgba(247, 250, 247, 0.5) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lux-form .form-select,
.form-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--lux-subtext) 50%),
    linear-gradient(135deg, var(--lux-subtext) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.dt-field {
  position: relative;
}

.dt-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dt-input {
  padding-right: 2.6rem;
  cursor: pointer;
}

.dt-trigger {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--lux-subtext);
  font-size: 1.1rem;
}

.dt-picker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 92vw);
  background: #ffffff;
  border: 1px solid var(--lux-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14, 46, 35, 0.16);
  padding: 1rem;
  display: none;
  z-index: 1080;
}

.dt-picker.open {
  display: block;
}

.dt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.dt-month {
  font-weight: 600;
}

.dt-nav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--lux-border);
  background: var(--lux-glass);
  display: grid;
  place-items: center;
}

.dt-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 0.75rem;
  color: var(--lux-subtext);
  text-align: center;
  margin-bottom: 0.4rem;
}

.dt-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.dt-day {
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--lux-text);
}

.dt-day:hover,
.dt-day.active {
  background: rgba(116, 224, 182, 0.35);
}

.dt-empty {
  height: 30px;
}

.dt-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  border-top: 1px solid rgba(23, 107, 70, 0.12);
  padding-top: 0.6rem;
}

.dt-time-col {
  display: grid;
  gap: 0.35rem;
  max-height: 160px;
  overflow: auto;
  padding-right: 0.2rem;
}

.dt-time-btn {
  border: 1px solid rgba(23, 107, 70, 0.12);
  background: #f7fbf8;
  border-radius: 10px;
  padding: 0.35rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.dt-time-btn.active,
.dt-time-btn:hover {
  background: var(--lux-accent);
  color: #fff;
  border-color: transparent;
}

.meeting,
.proposal,
.discussion,
.invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--lux-border);
}

.meeting:last-child,
.proposal:last-child,
.discussion:last-child,
.invoice:last-child {
  border-bottom: none;
}

.meeting-title,
.proposal-title,
.discussion-title,
.invoice-title {
  font-weight: 600;
}

.meeting-meta,
.proposal-meta,
.discussion-meta,
.invoice-meta {
  font-size: 0.8rem;
  color: var(--lux-subtext);
}

.proposal-status {
  font-size: 0.8rem;
  color: var(--lux-accent);
}

.people-list,
.portfolio-grid,
.project-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.person,
.portfolio-card,
.project-card,
.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(102, 184, 255, 0.1);
  border: 1px solid rgba(43, 120, 201, 0.16);
}

.status-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(102, 184, 255, 0.22);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.progress-lux {
  height: 8px;
  background: rgba(102, 184, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.progress-lux span {
  display: block;
  height: 100%;
  background: var(--lux-accent);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--lux-border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-title {
  font-weight: 600;
}

.toggle-meta {
  font-size: 0.8rem;
  color: var(--lux-subtext);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(102, 184, 255, 0.35);
  border-radius: 999px;
  transition: 0.2s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
}

.switch input:checked + span {
  background: rgba(43, 120, 201, 0.75);
}

.switch input:checked + span::before {
  transform: translateX(20px);
}

.hero-card,
.glass-card,
.nav-section,
.sidebar__profile {
  animation: fadeUp 0.7s ease both;
}

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

.glass-card:hover,
.hero-card:hover,
.nav-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(14, 46, 35, 0.14);
}
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: -320px;
    transition: left 0.3s ease;
    z-index: 50;
  }

  .sidebar.open {
    left: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .search-pill input {
    width: 120px;
  }
}

@media (max-width: 576px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .search-pill {
    width: 100%;
  }

  .search-pill input {
    width: 100%;
  }
}








.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.page-sub {
  color: var(--lux-subtext);
}

.table-lux thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lux-subtext);
}

.table-lux tbody tr {
  border-top: 1px solid rgba(23, 107, 70, 0.12);
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(102, 184, 255, 0.2);
  color: var(--lux-text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-select {
  min-width: 140px;
}

.btn-primary-lux {
  background: linear-gradient(135deg, var(--lux-accent) 0%, var(--lux-forest) 100%);
  border: none;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(14, 46, 35, 0.16);
}

.btn-outline-lux {
  border: 1px solid rgba(23, 107, 70, 0.3);
  color: var(--lux-text);
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.btn-success-lux {
  background: var(--lux-accent);
  border: none;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

body[data-theme="dark"] .btn-outline-lux {
  border-color: rgba(116, 224, 182, 0.35);
  color: var(--lux-text);
  background: rgba(12, 24, 18, 0.6);
}

body[data-theme="dark"] .btn-outline-lux:hover,
body[data-theme="dark"] .btn-outline-lux:focus {
  background: rgba(22, 45, 33, 0.8);
  border-color: rgba(116, 224, 182, 0.6);
  color: #e9fff6;
}

body[data-theme="dark"] .btn-success-lux {
  background: linear-gradient(135deg, #1a9b69 0%, #147048 100%);
  box-shadow: 0 14px 34px rgba(8, 20, 14, 0.35);
}

body[data-theme="dark"] .btn-success-lux:hover,
body[data-theme="dark"] .btn-success-lux:focus {
  background: linear-gradient(135deg, #20b377 0%, #168c5a 100%);
  box-shadow: 0 18px 38px rgba(8, 20, 14, 0.45);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .action-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

.calendar-shell {
  background: var(--lux-card);
  border-radius: var(--lux-radius);
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.calendar-btn {
  border: 1px solid var(--lux-border);
  background: var(--lux-glass);
  color: var(--lux-text);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.calendar-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lux-border);
  background: var(--lux-accent);
  color: #fff;
}

.calendar-month {
  font-size: 1.6rem;
  font-weight: 700;
}

.calendar-views {
  display: inline-flex;
  background: var(--lux-accent);
  border-radius: 12px;
  overflow: hidden;
}

.view-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.view-btn.active {
  background: var(--lux-forest);
  color: #fff;
}

.calendar-weekdays {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--lux-border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.calendar-weekdays div {
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  background: #ffffff;
  border-right: 1px solid var(--lux-border);
}

.calendar-weekdays div:last-child {
  border-right: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--lux-border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.calendar-day {
  min-height: 110px;
  padding: 0.6rem 0.6rem 0.4rem;
  border-right: 1px solid var(--lux-border);
  border-bottom: 1px solid var(--lux-border);
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: none;
}

.calendar-day.muted {
  background: #fbfdfb;
  color: rgba(13, 34, 27, 0.35);
}

.calendar-day.selected {
  background: #fff7dd;
}

.calendar-date {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lux-accent);
}

.calendar-event {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #0d221b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4b000;
  flex: 0 0 auto;
}

.meeting-panel {
  background: var(--lux-card);
  border-radius: var(--lux-radius);
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 1.5rem;
}

.meeting-panel .panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.meeting-panel .panel-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.meeting-categories {
  display: grid;
  gap: 1rem;
}

.meeting-category {
  padding: 0.9rem;
  border-radius: 18px;
  background: #fbfdfb;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.category-count {
  font-size: 0.75rem;
  color: var(--lux-subtext);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(116, 224, 182, 0.3);
}

.meeting-list {
  display: grid;
  gap: 0.8rem;
}

.meeting-card {
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(102, 184, 255, 0.1);
  border: 1px solid rgba(43, 120, 201, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.meeting-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meeting-tag {
  background: rgba(116, 224, 182, 0.35);
  color: #0d221b;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.schedule-modal .modal-content {
  border-radius: 18px;
  border: 1px solid var(--lux-border);
  box-shadow: 0 28px 60px rgba(14, 46, 35, 0.18);
}

.schedule-modal .modal-header {
  border-bottom: 1px solid rgba(23, 107, 70, 0.12);
}

.schedule-modal .modal-footer {
  border-top: 1px solid rgba(23, 107, 70, 0.12);
}

.proposal-modal .modal-content {
  border-radius: 18px;
  border: 1px solid var(--lux-border);
  box-shadow: 0 28px 60px rgba(14, 46, 35, 0.18);
}

.proposal-modal .modal-header {
  border-bottom: 1px solid rgba(23, 107, 70, 0.12);
}

.proposal-modal .modal-footer {
  border-top: 1px solid rgba(23, 107, 70, 0.12);
}

.calendar-day {
  cursor: pointer;
  transition: background 0.2s ease;
}

.calendar-day:hover {
  background: #f3fbf6;
}

.company-hero {
  display: grid;
  gap: 1.5rem;
}

.company-hero-card {
  background: linear-gradient(130deg, #ffffff 0%, #eef5ff 60%, #e4f0ff 100%);
  border-radius: 26px;
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.company-hero-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.company-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lux-accent) 0%, var(--lux-forest) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.company-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.company-sub {
  color: var(--lux-subtext);
  margin: 0 0 1rem;
}

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 120, 201, 0.25);
  background: rgba(102, 184, 255, 0.18);
  font-size: 0.78rem;
  color: var(--lux-text);
}

.company-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.company-hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.company-stat {
  background: #ffffff;
  border: 1px solid rgba(23, 107, 70, 0.12);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(14, 46, 35, 0.08);
}

.company-stat span {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.company-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.4rem;
}

.company-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.company-form-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
}

.company-side-stack {
  display: grid;
  gap: 1.2rem;
}

.company-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(14, 46, 35, 0.1);
  display: grid;
  gap: 1rem;
}

.company-card.highlight {
  background: rgba(102, 184, 255, 0.12);
}

.company-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.company-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(23, 107, 70, 0.12);
}

.company-toggle:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brand-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: #fbfdfb;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.brand-meta {
  color: var(--lux-subtext);
  font-size: 0.8rem;
}

.company-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--lux-text);
}

.company-checklist i {
  color: var(--lux-accent);
  margin-right: 0.5rem;
}

.company-checklist li:last-child i {
  color: #d97706;
}

.company-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: none;
}

.company-mark.has-logo img {
  display: block;
}

.company-mark.has-logo .company-logo-fallback {
  display: none;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.preview-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: 1px solid var(--lux-border);
  background: #f7fbf8;
  display: grid;
  place-items: center;
  color: var(--lux-subtext);
  overflow: hidden;
}

.preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.preview-logo.has-logo img {
  display: block;
}

.preview-logo.has-logo .preview-logo-fallback {
  display: none;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.preview-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lux-subtext);
  margin-bottom: 0.35rem;
}

.ai-setup-hero {
  display: grid;
  gap: 1.5rem;
}

.ai-setup-card {
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 55%, #e3efff 100%);
  border-radius: 26px;
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
}

.ai-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ai-setup-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.ai-setup-sub {
  color: var(--lux-subtext);
  margin: 0.4rem 0 0;
}

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(116, 224, 182, 0.3);
  border: 1px solid rgba(23, 107, 70, 0.18);
  font-size: 0.8rem;
  font-weight: 600;
}

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

.ai-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.6rem;
  box-shadow: 0 18px 44px rgba(14, 46, 35, 0.1);
  display: grid;
  gap: 1.2rem;
}

.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ai-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ai-chip {
  background: rgba(102, 184, 255, 0.2);
  border: 1px solid rgba(43, 120, 201, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.ai-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ai-helper {
  color: var(--lux-subtext);
  margin: 0;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-button-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  float: right;
  flex-wrap: wrap;
}

.ai-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.ai-kpi {
  background: #ffffff;
  border: 1px solid rgba(23, 107, 70, 0.12);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.ai-kpi span {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.ai-kpi strong {
  display: block;
  font-size: 1.3rem;
  margin-top: 0.3rem;
}

.ai-toggle-list {
  display: grid;
  gap: 0.6rem;
}

.ai-alert {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(102, 184, 255, 0.12);
  border: 1px solid rgba(43, 120, 201, 0.18);
  color: #0d221b;
  font-size: 0.9rem;
}

.ai-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.5rem 1.8rem;
  box-shadow: 0 16px 36px rgba(14, 46, 35, 0.1);
}

.ai-footer-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.ai-footer-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.smtp-hero {
  display: grid;
  gap: 1.5rem;
}

.smtp-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7e6 60%, #fff1cc 100%);
  border-radius: 26px;
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.smtp-hero-main {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.smtp-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6a700 0%, #ffbe2d 100%);
  color: #201600;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.smtp-hero-title {
  font-size: 1.7rem;
  font-weight: 700;
}

.smtp-hero-sub {
  color: var(--lux-subtext);
  margin: 0.4rem 0 0;
}

.smtp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.smtp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.smtp-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.smtp-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.6rem;
  box-shadow: 0 18px 44px rgba(14, 46, 35, 0.1);
  display: grid;
  gap: 1.2rem;
  height: 100%;
}

.smtp-card--wide {
  min-height: 100%;
}

.smtp-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.smtp-alert {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #fff5db;
  border: 1px solid rgba(236, 170, 40, 0.35);
  color: #3b2f0f;
  font-size: 0.9rem;
}

.smtp-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.smtp-metric {
  background: #ffffff;
  border: 1px solid rgba(23, 107, 70, 0.12);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.smtp-metric span {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.smtp-metric strong {
  display: block;
  font-size: 1.3rem;
  margin-top: 0.3rem;
}

.smtp-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.smtp-reputation {
  display: grid;
  gap: 1.2rem;
}

.smtp-rep-score {
  background: linear-gradient(135deg, #f6a700 0%, #ffd166 100%);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  color: #201600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.smtp-rep-score strong {
  font-size: 2rem;
}

.smtp-rep-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(32, 22, 0, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
}

.smtp-rep-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.smtp-rep-item {
  background: #fffdf7;
  border: 1px solid rgba(236, 170, 40, 0.25);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.smtp-rep-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #3b2f0f;
  background: rgba(246, 167, 0, 0.2);
  width: max-content;
}

.smtp-rep-chip.ok {
  background: rgba(22, 163, 74, 0.18);
  color: #14532d;
}

.smtp-rep-chip.warn {
  background: rgba(245, 158, 11, 0.2);
  color: #7c2d12;
}

.smtp-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.5rem 1.8rem;
  box-shadow: 0 16px 36px rgba(14, 46, 35, 0.1);
}

.app-footer {
  padding: 1.4rem 1rem 1rem;
  color: var(--lux-subtext);
  background: var(--lux-surface);
}

.app-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--lux-border);
  padding-top: 1.2rem;
  font-size: 0.85rem;
}

.app-footer__links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--lux-subtext);
}

body[data-theme="dark"] .app-footer {
  color: rgba(247, 250, 247, 0.85);
  background: rgba(10, 20, 15, 0.95);
}

body[data-theme="dark"] .app-footer__inner {
  border-top-color: rgba(127, 207, 164, 0.2);
}

body[data-theme="dark"] .app-footer__links {
  color: rgba(247, 250, 247, 0.7);
}

body.dt-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 12, 0.4);
  z-index: 1040;
  pointer-events: none;
}

body.dt-open .dt-picker {
  z-index: 1085;
  opacity: 1;
  filter: none;
}

body[data-theme="light"].dt-open::before {
  background: transparent;
}

body[data-theme="dark"].dt-open::before {
  background: transparent;
}

.analytics-hero {
  display: grid;
  gap: 1.5rem;
}

.analytics-hero-card {
  background: linear-gradient(130deg, #ffffff 0%, #eef5ff 55%, #e3efff 100%);
  border-radius: 26px;
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
}

.analytics-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.analytics-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--lux-subtext);
}

.analytics-title {
  font-size: 2.1rem;
  margin: 0.3rem 0;
}

.analytics-sub {
  color: var(--lux-subtext);
  margin: 0;
}

.analytics-hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.analytics-kpi {
  background: #ffffff;
  border: 1px solid rgba(23, 107, 70, 0.12);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 12px 24px rgba(14, 46, 35, 0.08);
}

.analytics-kpi span {
  font-size: 0.75rem;
  color: var(--lux-subtext);
}

.analytics-kpi strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 0.35rem;
}

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

.analytics-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(23, 107, 70, 0.14);
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(14, 46, 35, 0.1);
  display: grid;
  gap: 1rem;
}

.analytics-card.span-2 {
  grid-column: span 2;
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.analytics-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.analytics-card-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.analytics-chip {
  background: rgba(116, 174, 224, 0.2);
  border: 1px solid rgba(23, 107, 70, 0.16);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.analytics-chart {
  background: #f7fafb;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

.analytics-list {
  display: grid;
  gap: 0.6rem;
}

.analytics-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: #f8fbf9;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.analytics-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: #f8fbf9;
  border: 1px solid rgba(23, 78, 107, 0.12);
}

.analytics-health-title {
  font-weight: 600;
}

.analytics-health-sub {
  color: var(--lux-subtext);
  font-size: 0.8rem;
}

.analytics-bars {
  display: grid;
  gap: 0.7rem;
}

.analytics-bar {
  display: grid;
  gap: 0.4rem;
}

.analytics-bar-label {
  font-size: 0.85rem;
  color: var(--lux-subtext);
}

.analytics-rec-list {
  display: grid;
  gap: 0.8rem;
}

.analytics-rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: #f8f8fb;
  border: 1px solid rgba(23, 107, 70, 0.12);
}

.analytics-rec-title {
  font-weight: 600;
}

.analytics-rec-sub {
  color: var(--lux-subtext);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .analytics-card.span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  .company-profile-grid {
    grid-template-columns: 1fr;
  }

  .smtp-grid {
    grid-template-columns: 1fr;
  }
}

.invoice-create-card {
  border-radius: 26px;
  padding: 2rem;
}

.invoice-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.invoice-form .invoice-label {
  margin-bottom: 0.5rem;
}

.invoice-date-field {
  position: relative;
}

.invoice-date-field .form-control {
  padding-right: 2.6rem;
}

.invoice-date-icon {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lux-subtext);
}

.invoice-items {
  display: grid;
  gap: 0.8rem;
}

.invoice-items-head,
.invoice-items-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 0.4fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--lux-border);
}

.invoice-items-head {
  background: rgba(102, 184, 255, 0.12);
  font-weight: 600;
}

.invoice-items-row {
  background: rgba(255, 255, 255, 0.95);
}

.invoice-input-group {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(43, 120, 201, 0.2);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.invoice-input-group span {
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  background: rgba(102, 184, 255, 0.2);
  border-right: 1px solid var(--lux-border);
}

.invoice-input-group input {
  border: none;
  background: transparent;
  padding: 0.5rem 0.7rem;
  width: 100%;
  outline: none;
}

.invoice-add-row {
  margin-top: 1rem;
}

.invoice-divider {
  margin: 2rem 0 1.5rem;
  border-top: 1px solid var(--lux-border);
}

.invoice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.invoice-note {
  margin: 0;
  color: var(--lux-subtext);
}

@media (max-width: 992px) {
  .invoice-items-head,
  .invoice-items-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 0.4fr);
  }
}

@media (max-width: 576px) {
  .invoice-items-head {
    display: none;
  }

  .invoice-items-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .invoice-items-row .btn-icon {
    justify-self: flex-start;
  }
}

@media (max-width: 992px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .discussion-grid {
    grid-template-columns: 1fr;
  }
}

body[data-theme="dark"] .nav-section,
body[data-theme="dark"] .glass-card,
body[data-theme="dark"] .metric,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .thread-item,
body[data-theme="dark"] .report-item,
body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .person,
body[data-theme="dark"] .portfolio-card,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .company-card,
body[data-theme="dark"] .company-stat,
body[data-theme="dark"] .company-form-card,
body[data-theme="dark"] .ai-card,
body[data-theme="dark"] .ai-kpi,
body[data-theme="dark"] .ai-footer-actions,
body[data-theme="dark"] .smtp-card,
body[data-theme="dark"] .smtp-footer-actions,
body[data-theme="dark"] .analytics-card,
body[data-theme="dark"] .analytics-kpi,
body[data-theme="dark"] .analytics-chart,
body[data-theme="dark"] .analytics-list div,
body[data-theme="dark"] .analytics-health,
body[data-theme="dark"] .analytics-rec,
body[data-theme="dark"] .invoice-card,
body[data-theme="dark"] .invoice-items-head,
body[data-theme="dark"] .invoice-items-row,
body[data-theme="dark"] .invoice-input-group,
body[data-theme="dark"] .sidebar__profile,
body[data-theme="dark"] .profile-menu,
body[data-theme="dark"] .dt-picker,
body[data-theme="dark"] .dt-nav,
body[data-theme="dark"] .dt-time-btn,
body[data-theme="dark"] .invoice-menu,
body[data-theme="dark"] .schedule-modal .modal-content,
body[data-theme="dark"] .proposal-modal .modal-content {
  background: var(--lux-card);
  border-color: var(--lux-border);
  box-shadow: var(--lux-shadow);
}

body[data-theme="dark"] .dropdown-menu {
  background: var(--lux-card);
  border-color: var(--lux-border);
  box-shadow: var(--lux-shadow);
}

body[data-theme="dark"] .dropdown-item {
  color: var(--lux-text);
}

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:focus {
  background: rgba(116, 224, 182, 0.18);
  color: #f7faf7;
}

body[data-theme="dark"] .dropdown-divider {
  border-top-color: rgba(127, 207, 164, 0.2);
}

body[data-theme="dark"] .hero-card {
  background: linear-gradient(180deg, #12231b 0%, #0f1f18 100%);
  border-color: var(--lux-border);
  box-shadow: var(--lux-shadow);
}

body[data-theme="dark"] .search-pill,
body[data-theme="dark"] .btn-icon,
body[data-theme="dark"] .dt-time-btn,
body[data-theme="dark"] .invoice-input-group {
  background: var(--lux-glass);
  border-color: var(--lux-border);
}

body[data-theme="dark"] .invoice-items-head {
  background: rgba(16, 32, 24, 0.8);
}

body[data-theme="dark"] .invoice-items-row {
  background: var(--lux-card);
}

body[data-theme="dark"] .hero-card .metric,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .thread-item,
body[data-theme="dark"] .report-item,
body[data-theme="dark"] .analytics-chart,
body[data-theme="dark"] .analytics-list div,
body[data-theme="dark"] .analytics-health,
body[data-theme="dark"] .analytics-rec {
  background: rgba(16, 32, 48, 0.75);
}

body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link.active {
  background: rgba(102, 184, 255, 0.2);
}

body[data-theme="dark"] .nav-link {
  color: rgba(242, 247, 255, 0.82);
}

body[data-theme="dark"] .badge-lux,
body[data-theme="dark"] .proposal-status {
  color: #8fe3c4;
}

body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .badge-pill,
body[data-theme="dark"] .meeting-tag,
body[data-theme="dark"] .ai-chip,
body[data-theme="dark"] .analytics-chip,
body[data-theme="dark"] .attachment-chip,
body[data-theme="dark"] .invite-chip,
body[data-theme="dark"] .chip,
body[data-theme="dark"] .status-pill {
  background: rgba(102, 184, 255, 0.22);
  color: var(--lux-text);
}

body[data-theme="dark"] .chip-success {
  background: rgba(116, 224, 182, 0.3);
}

body[data-theme="dark"] .chip-alert {
  background: rgba(245, 158, 11, 0.24);
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .company-hero-card,
body[data-theme="dark"] .ai-setup-card,
body[data-theme="dark"] .smtp-hero-card,
body[data-theme="dark"] .analytics-hero-card {
  color: var(--lux-text);
}

body[data-theme="dark"] .company-hero-card {
  background: linear-gradient(130deg, #132338 0%, #0f1b2d 60%, #0c1726 100%);
}

body[data-theme="dark"] .ai-setup-card {
  background: linear-gradient(135deg, #132338 0%, #0f1c2e 60%, #0b1624 100%);
}

body[data-theme="dark"] .smtp-hero-card {
  background: linear-gradient(135deg, #1f1a0f 0%, #2c2413 55%, #1a150c 100%);
}

body[data-theme="dark"] .analytics-hero-card {
  background: linear-gradient(130deg, #132338 0%, #0f1c2e 55%, #0c1624 100%);
}

body[data-theme="dark"] .ai-alert {
  background: rgba(102, 184, 255, 0.18);
  color: var(--lux-text);
  border-color: rgba(102, 184, 255, 0.28);
}

body[data-theme="dark"] .smtp-alert {
  background: rgba(246, 167, 0, 0.14);
  color: #f6d59c;
  border-color: rgba(246, 167, 0, 0.3);
}

body[data-theme="dark"] .smtp-rep-item {
  background: rgba(246, 167, 0, 0.08);
  border-color: rgba(246, 167, 0, 0.2);
}

body[data-theme="dark"] .smtp-rep-chip {
  background: rgba(246, 167, 0, 0.2);
  color: #f6d59c;
}

body[data-theme="dark"] .smtp-rep-chip.ok {
  background: rgba(22, 163, 74, 0.2);
  color: #8fe3c4;
}

body[data-theme="dark"] .smtp-rep-chip.warn {
  background: rgba(245, 158, 11, 0.24);
  color: #f1c089;
}

body[data-theme="dark"] .invoice-title,
body[data-theme="dark"] .invoice-total strong,
body[data-theme="dark"] .progress-value,
body[data-theme="dark"] .invoice-company {
  color: #8fb6ff;
}

body[data-theme="dark"] .dt-picker {
  background: var(--lux-card);
  border-color: var(--lux-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--lux-text);
}

body[data-theme="dark"] .dt-nav {
  background: rgba(12, 24, 18, 0.8);
  border-color: rgba(116, 224, 182, 0.3);
  color: var(--lux-text);
}

body[data-theme="dark"] .dt-month {
  color: var(--lux-text);
}

body[data-theme="dark"] .dt-weekdays {
  color: var(--lux-subtext);
}

body[data-theme="dark"] .dt-day {
  color: var(--lux-text);
}

body[data-theme="dark"] .dt-day:hover,
body[data-theme="dark"] .dt-day.active {
  background: rgba(116, 224, 182, 0.2);
}

body[data-theme="dark"] .dt-times {
  border-top-color: var(--lux-border);
}

body[data-theme="dark"] .dt-time-btn {
  background: rgba(12, 24, 18, 0.85);
  border-color: rgba(116, 224, 182, 0.25);
  color: var(--lux-text);
}

body[data-theme="dark"] .dt-time-btn.active,
body[data-theme="dark"] .dt-time-btn:hover {
  background: rgba(116, 224, 182, 0.35);
  color: #f7faf7;
  border-color: rgba(116, 224, 182, 0.45);
}

body[data-theme="dark"] .dt-time-col {
  scrollbar-color: rgba(116, 224, 182, 0.4) transparent;
}

body[data-theme="dark"] .dt-time-col::-webkit-scrollbar {
  width: 6px;
}

body[data-theme="dark"] .dt-time-col::-webkit-scrollbar-thumb {
  background: rgba(116, 224, 182, 0.4);
  border-radius: 999px;
}

body[data-theme="dark"] .calendar-shell,
body[data-theme="dark"] .meeting-panel,
body[data-theme="dark"] .meeting-category,
body[data-theme="dark"] .meeting-card {
  background: var(--lux-card);
  border-color: var(--lux-border);
  box-shadow: var(--lux-shadow);
}

body[data-theme="dark"] .calendar-weekdays,
body[data-theme="dark"] .calendar-grid {
  border-color: var(--lux-border);
}

body[data-theme="dark"] .calendar-weekdays div {
  background: rgba(15, 30, 22, 0.9);
  border-right-color: var(--lux-border);
  color: var(--lux-subtext);
}

body[data-theme="dark"] .calendar-day {
  background: rgba(12, 24, 18, 0.9);
  border-right-color: var(--lux-border);
  border-bottom-color: var(--lux-border);
  color: var(--lux-text);
}

body[data-theme="dark"] .calendar-day:hover {
  background: rgba(18, 36, 27, 0.9);
}

body[data-theme="dark"] .calendar-day.muted {
  background: rgba(10, 20, 15, 0.7);
  color: rgba(247, 250, 247, 0.35);
}

body[data-theme="dark"] .calendar-day.selected {
  background: rgba(246, 167, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(246, 167, 0, 0.35);
}

body[data-theme="dark"] .calendar-date {
  color: #8fe3c4;
}

body[data-theme="dark"] .calendar-event {
  color: var(--lux-text);
}

body[data-theme="dark"] .calendar-btn {
  background: rgba(12, 24, 18, 0.7);
  border-color: rgba(116, 224, 182, 0.3);
  color: var(--lux-text);
}

body[data-theme="dark"] .calendar-btn:hover {
  background: rgba(22, 45, 33, 0.8);
  border-color: rgba(116, 224, 182, 0.55);
}

body[data-theme="dark"] .calendar-btn-icon {
  background: linear-gradient(135deg, #1a9b69 0%, #147048 100%);
  border-color: rgba(116, 224, 182, 0.35);
}

body[data-theme="dark"] .calendar-views {
  background: rgba(20, 60, 44, 0.85);
  border: 1px solid rgba(116, 224, 182, 0.25);
}

body[data-theme="dark"] .view-btn {
  color: rgba(247, 250, 247, 0.6);
}

body[data-theme="dark"] .view-btn.active {
  background: rgba(22, 94, 64, 0.85);
  color: #fff;
}

body[data-theme="dark"] .category-count {
  background: rgba(116, 224, 182, 0.2);
  color: var(--lux-text);
}
