body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

.dashboard, .login-box {
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px #ccc;
}

h2, h3, h4 {
    color: #333;
    margin-top: 10px;
}

input, button, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    background: #eee;
    border-radius: 5px;
    margin: 5px;
}

.tab.active {
    background: #007bff;
    color: white;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

a {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
}
a:hover {
    text-decoration: underline;
}

.status-active { color: green; font-weight: bold; }
.status-inactive { color: red; font-weight: bold; }

select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #fff;
}


/* Responsive tweaks */
@media (max-width: 480px) {
    input, button, select {
        font-size: 14px;
        padding: 10px;
    }
    .tabs {
        flex-direction: column;
    }
    .tab {
        margin: 5px 0;
    }
}

.resident-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    background: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resident-actions a {
    margin-left: 10px;
    font-size: 14px;
}
.details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-left: 3px solid #007bff;
}
