
:root {
  --blue: #1f73b7;
  --blue-light: #4c9fff;
  --gray: #6b7280;
  --bg: #f3f4f6;
  --panel-bg: #ffffff;
  --border-color: #e5e7eb;
  --danger: #dc2626;
  --success: #16a34a;
  --sidebar-width: 280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: #111827;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-navbar-wrapper {
  background: #0f172a;
  color: #e5e7eb;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}

.inner-navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #e5e7eb;
}

.logo-text span {
  color: var(--blue-light);
}

.nav-wrapper {
  display: flex;
  flex: 1;
  justify-content: space-between;
  margin-left: 32px;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav > li {
  margin-right: 16px;
}

.nav > li a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
}

.nav > li a:hover {
  color: var(--blue-light);
}

.navbar-nav.navbar-right {
  justify-content: flex-end;
}

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 20px auto 40px;
  padding: 0 16px;
}

/* Layout with sidebar */
.sidebar-float {
  float: left;
  width: var(--sidebar-width);
  margin-right: 24px;
}

.content-with-sidebar {
  margin-left: calc(var(--sidebar-width) + 24px);
}

/* Panels */
.panel {
  background: var(--panel-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.panel-body {
  padding: 16px 20px;
}

/* Property sidebar */
.sidebar-content {
  background: var(--panel-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 12px 16px 16px;
}

.sidebar-picture {
  margin-bottom: 12px;
}

.picture-thumb {
  width: 100%;
  border-radius: 4px;
  display: block;
  margin-bottom: 8px;
}

.property-action-buttons-top,
.property-action-buttons-bottom {
  margin-bottom: 12px;
}

.btn {
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.btn-clear {
  background: transparent;
  border-color: transparent;
}

.btn-icon i {
  margin-right: 4px;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-primary.btn-outline {
  background: transparent;
  color: var(--blue);
}

.blue { color: var(--blue); }
.red { color: var(--danger); }
.green { color: var(--success); }
.bold { font-weight: 600; }

.custom-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border-color);
  background: #e5f2ff;
  color: var(--blue);
}

.custom-badge-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.custom-badge-success {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

/* Content headings */
.content-heading {
  font-size: 22px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--gray);
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li+li:before {
  content: " / ";
  padding: 0 4px;
}

/* Quick stats cards */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.quick-stat-card {
  background: var(--panel-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
}

.quick-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.quick-stat-value {
  font-size: 16px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.table th {
  background: #f9fafb;
  font-weight: 600;
}

/* Footer */
.footer-wrapper {
  border-top: 1px solid var(--border-color);
  background: #f9fafb;
  padding: 20px 16px 30px;
}

.inner-footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cols {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer-cols .col {
  flex: 1;
}

.footer-cols h4 {
  font-size: 15px;
  margin: 0 0 8px;
}

.footer-cols a {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--blue);
  text-decoration: none;
}

.footer-cols a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 12px;
  text-align: center;
  color: var(--gray);
}

/* Utilities */
.text-center { text-align: center; }
.margin-t-30 { margin-top: 30px; }
.margin-b-20 { margin-bottom: 20px; }
.margin-b-10 { margin-bottom: 10px; }

/* List page */
.properties-list-page .properties-table-wrapper {
  margin-top: 16px;
}

.status-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid var(--border-color);
}

.status-pill.rental {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill.flip {
  background: #fee2e2;
  color: #b91c1c;
}
