.resident-page {
    width: 100%;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.resident-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.resident-page-header h2,
.resident-page-header h3 {
    margin: 0;
    color: var(--secondary);
    font-weight: 700;
}


/* =========================================================
   RESIDENT ACTIONS
   ========================================================= */

.resident-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resident-actions .btn {
    border-radius: 8px;
}


/* =========================================================
   RESIDENT CARD
   ========================================================= */

.resident-card,
.resident-profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px;
}



/* =========================================================
   RESIDENT PROFILE
   ========================================================= */

.resident-profile-title {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 4px;
}

.resident-profile-subtitle {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.resident-info-item {
    margin-bottom: 15px;
}

.resident-info-item:last-child {
    margin-bottom: 0;
}

.resident-info-item label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
}

.resident-info-item p {
    margin: 0;
    font-weight: 600;
    color: var(--secondary);
}


/* =========================================================
   TABLES
   ========================================================= */

.resident-table {
    margin-bottom: 0;
}

.resident-table th {
    background: #f8f6f2;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.resident-table th,
.resident-table td {
    padding: 11px 12px;
    vertical-align: middle;
}


/* =========================================================
   DELETE
   ========================================================= */

.resident-delete-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.resident-delete-card h3 {
    color: #dc3545;
    margin-bottom: 12px;
}

.resident-delete-card p {
    color: #666;
    margin-bottom: 22px;
}

.resident-delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.resident-empty {
    padding: 35px 20px;
    text-align: center;
    color: #777;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .resident-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .resident-actions {
        width: 100%;
    }

    .resident-actions .btn {
        flex: 1 1 auto;
    }

    .resident-card,
    .resident-profile-card {
        padding: 15px;
    }

    .resident-form-card {
        padding: 14px;
    }
    .resident-form-card .form-footer {
        flex-direction: column;
    }

    .resident-form-card .form-footer .btn {
        width: 100%;
    }

    .resident-table {
        min-width: 700px;
    }

    .resident-table-wrapper {
        overflow-x: auto;
    }

    .resident-delete-card {
        margin: 20px auto;
        padding: 24px 18px;
    }

    .resident-delete-actions {
        flex-direction: column;
    }

    .resident-delete-actions .btn {
        width: 100%;
    }
}