/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a2e; background: #fafafa; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

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

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid #e0e0e0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.4rem; font-weight: 700; color: #2563eb; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.95rem; color: #555; transition: color 0.2s; }
.nav-links a:hover { color: #2563eb; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #555; }

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: 6px; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: background 0.2s, transform 0.1s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; background: #2563eb; color: #fff; border-radius: 6px; }
.btn-sm:hover { background: #1d4ed8; }
.btn-outline { background: transparent; border: 2px solid #2563eb; color: #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* Hero */
.hero { padding: 5rem 0 4rem; text-align: center; background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; color: #1a1a2e; }
.hero h1 span { color: #2563eb; }
.hero p { font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { padding: 4rem 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; }
.features .subtitle { text-align: center; color: #777; margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; transition: box-shadow 0.2s; }
.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: #666; font-size: 0.95rem; }

/* Auth Section */
.auth-section { padding: 4rem 0; background: #f8fafc; }
.auth-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.auth-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 2rem; }
.auth-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; color: #1a1a2e; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #555; margin-bottom: 0.3rem; }
.form-group input { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.auth-card .btn { width: 100%; margin-top: 0.5rem; }
.auth-message { text-align: center; padding: 0.5rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; display: none; }
.auth-message.error { display: block; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-message.success { display: block; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* Dashboard */
.dashboard { padding: 2rem 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dashboard-header h1 { font-size: 1.8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; }
.stat-card .stat-label { font-size: 0.85rem; color: #777; margin-bottom: 0.3rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: #1a1a2e; }
.stat-card .stat-icon { font-size: 1.5rem; float: right; }

.dashboard-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.dashboard-section h2 { font-size: 1.2rem; margin-bottom: 1rem; color: #1a1a2e; }

.activity-list { list-style: none; }
.activity-item { padding: 0.6rem 0; border-bottom: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: center; }
.activity-item:last-child { border-bottom: none; }
.activity-type { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 500; }
.activity-type.property { background: #dbeafe; color: #1d4ed8; }
.activity-type.client { background: #dcfce7; color: #16a34a; }
.activity-type.appointment { background: #fef3c7; color: #d97706; }

.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.breakdown-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid #f3f4f6; }
.breakdown-item:last-child { border-bottom: none; }

.empty-state { text-align: center; color: #999; padding: 2rem; font-size: 0.95rem; }

/* Footer */
.footer { padding: 2rem 0; text-align: center; color: #999; font-size: 0.85rem; border-top: 1px solid #e5e7eb; margin-top: 2rem; }

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid #e0e0e0; gap: 0.8rem; }
    .nav-links.open { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .auth-container { grid-template-columns: 1fr; }
    .breakdown-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
