:root {
    --primary-color: #0d6efd;
    --secondary-bg: #f8f9fa;
    --border-color: #e9ecef;
    --text-muted: #6c757d;
    --text-dark: #212529;
}
html, body {
    height: 100%; /* take full height */
}

body.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* always full viewport height */
    margin: 0;
}

.site-content {
    display: flex;
    flex-direction: column;
    flex: 1; /* grow to fill space */
}

.page-body {
    flex: 1; /* pushes footer down */
    margin-top: 100px; /* your existing offset for fixed topbar */
}

.site-footer {
    margin-top: auto; /* stick to bottom */
}

/* Card Styling */
.card-modern {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    background: #fff;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header-modern {
    background: var(--secondary-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Data Grid Styling (For Land & Property Details) */
.detail-group {
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
}

/* Custom Tables */
.table-modern thead th {
    background-color: var(--secondary-bg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table-modern tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-btn-group {
    display: flex;
    gap: 5px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-light-primary {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border: none;
}

    .btn-light-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-light-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: none;
}

    .btn-light-danger:hover {
        background: #dc3545;
        color: white;
    }

/* Nav Tabs Styling */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

    .nav-tabs-custom .nav-link {
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--text-muted);
        font-weight: 500;
        padding: 10px 20px;
        margin-bottom: -2px;
    }

        .nav-tabs-custom .nav-link:hover {
            color: var(--primary-color);
        }

        .nav-tabs-custom .nav-link.active {
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
            background: transparent;
        }