:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 1.25rem;
    --shadow: 0 4px 12px 0 rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding-bottom: 5rem; /* Space for bottom nav */
    -webkit-tap-highlight-color: transparent;
}

header {
    background: white;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f1f5f9;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.15rem;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}

.section-title {
    padding: 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    padding: 1rem;
}

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

.card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-icon {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Specific Stat Colors */
.card-total { border-left: 4px solid var(--primary); }
.card-empty { border-left: 4px solid var(--success); }
.card-filled { border-left: 4px solid var(--secondary); }
.card-tenant { border-left: 4px solid #6366f1; }
.card-late { border-left: 4px solid var(--danger); }
.card-income { border-left: 4px solid var(--warning); }

/* Alerts / Notifications */
.alert-box {
    margin: 1rem;
    background: #fffafa;
    border: 1px solid #fee2e2;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #b91c1c;
}

.notification-item {
    background: white;
    border-radius: 1rem;
    padding: 0.875rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.notification-avatar {
    width: 2.75rem;
    height: 2.75rem;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.notification-content {
    flex: 1;
}

.notification-name {
    font-weight: 700;
    font-size: 0.9375rem;
}

.notification-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.notification-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    text-align: right;
}

.btn-remind {
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    margin-top: 0.5rem;
}

/* Activity List */
.activity-list {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    margin-top: 0.375rem;
}

.activity-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Occupancy Chart Placeholder */
.chart-container {
    margin: 1rem;
    background: #eff6ff;
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 12rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.05em;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 6rem;
    gap: 0.25rem;
}

.chart-bar {
    background: #bfdbfe;
    width: 14%;
    border-radius: 4px 4px 0 0;
}

.chart-bar.current {
    background: var(--primary);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.625rem 0;
    border-top: 1px solid #f1f5f9;
    z-index: 1000;
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom));
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 700;
    gap: 0.25rem;
    width: 20%;
    position: relative;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    width: 2rem;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 5.5rem;
    right: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    background: var(--primary);
    color: white;
    border-radius: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
}

.fab:active {
    transform: scale(0.9);
}

.fab i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
