/* Property Management Software — Documentation Styles */

:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #dbeafe;
  --success: #059669;
  --success-light: #d1fae5;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --border: #e2e8f0;
  --sidebar-w: 290px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); }

/* ========== LANDING (index) ========== */
.landing { background: var(--bg); }

.landing-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.landing-nav .logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.landing-nav .logo span { color: var(--text); font-weight: 600; }

.landing-nav .nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.landing-nav .nav-links a:hover { color: var(--accent); }

.landing-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 4rem 2rem 5rem;
  text-align: center;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.2;
}

.landing-hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.landing-hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.landing-hero .badge {
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.landing-hero .cta-row a {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.5rem;
}

.btn-primary { background: #fff; color: var(--accent-dark); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }

.landing-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

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

.landing-section h2 {
  font-size: 1.85rem;
  text-align: center;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.landing-section .section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.feature-card .example {
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #475569;
  border-radius: 0 6px 6px 0;
  margin: 0.75rem 0;
}

.feature-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.pricing-card .plan-name { font-size: 1.25rem; font-weight: 700; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin: 0.5rem 0; }
.pricing-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-card ul { list-style: none; text-align: left; margin: 1.25rem 0; }
.pricing-card li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--muted); }
.pricing-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

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

.stat-box {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-box .label { font-size: 0.85rem; color: var(--muted); }

.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.landing-footer a { color: #93c5fd; }

.coming-soon-panel {
  background: var(--card);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.coming-soon-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========== INNER PAGES (sidebar layout) ========== */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 1.5rem 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
}

.sidebar .brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1rem;
}

.sidebar .brand a {
  text-decoration: none;
  color: #fff;
}

.sidebar .brand h1 { font-size: 1.05rem; font-weight: 800; color: #60a5fa; line-height: 1.35; }
.sidebar .brand h1 span { display: block; font-size: 0.72rem; font-weight: 500; color: #94a3b8; margin-top: 0.15rem; }

.sidebar nav a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(37, 99, 235, 0.15);
  color: #fff;
  border-left-color: #60a5fa;
}

.sidebar nav .section-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  padding: 1rem 1.25rem 0.3rem;
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2rem 2.5rem 4rem;
  max-width: 920px;
}

.page-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-hero h1 { font-size: 1.85rem; margin-bottom: 0.35rem; border: none; padding: 0; }
.page-hero p { color: var(--muted); margin: 0; }

h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-light);
}

h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: #334155; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.45rem; }

.example-box {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.example-box .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.example-box p { margin: 0; font-size: 0.95rem; color: #065f46; }

.scenario-box {
  background: var(--gold-light);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.scenario-box .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.scenario-box p { margin: 0; color: #92400e; }

.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout strong { color: var(--accent-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 600; color: #334155; }
tr:last-child td { border-bottom: none; }

.flow-steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.flow-steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.1rem;
  counter-increment: step;
}

.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.role-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.role-owner { background: #dbeafe; color: #1e40af; }
.role-tenant { background: #fce7f3; color: #9d174d; }
.role-employee { background: #fef3c7; color: #92400e; }
.role-admin { background: #ede9fe; color: #5b21b6; }
.role-staff { background: #d1fae5; color: #065f46; }

.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

@media print {
  .sidebar, .landing-nav { display: none; }
  .main { margin-left: 0; max-width: 100%; }
}

@media (max-width: 768px) {
  .sidebar { 
    position: sticky; 
    top: 0;
    width: 100%; 
    height: auto;
    z-index: 100;
    padding: 0.75rem 0 0;
  }
  .sidebar .brand {
    padding: 0 1.25rem 0.5rem;
    margin-bottom: 0;
    border-bottom: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar nav::-webkit-scrollbar {
    height: 4px;
  }
  .sidebar nav::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
  }
  .sidebar nav a {
    display: inline-block;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 1rem;
  }
  .sidebar nav a:hover, .sidebar nav a.active {
    border-left-color: transparent;
    border-bottom-color: #60a5fa;
  }
  .sidebar nav .section-label {
    display: none; /* Hide labels to save horizontal space */
  }
  .main { margin-left: 0; padding: 1.25rem; }
  .layout { flex-direction: column; }
  .landing-nav .nav-links { display: none; }
}
