
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f6fa;
    color: #333;
    padding: 20px;
}


.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: red;
}


.search-container {
    display: flex;
    justify-content: center;
   margin-top: 70px;
    gap: 10px;
}

.search-container input {
    padding: 8px 12px;
    margin-bottom: 20px;
    width: 320px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;

}

.search-container input:focus {
    outline: none;
    border-color: #c50c0c;
    box-shadow: 0 0 5px rgba(197, 12, 12, 0.4);
}



.table-data {
    width: 100%;
    border-collapse: collapse;
    margin-top: 100px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.table-data th,
.table-data td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.table-data th {
    background-color: #d71f12;
    color: white;
    font-weight: 600;
}

.table-data tr:hover {
    background-color: #f1f2f6;
}

.view-donor,
.edit-donor,
.delete-donor {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 2px;
    transition: all 0.3s;
}

.view-donor {
    background-color: #00b894;
    color: white;
}

.view-donor:hover {
    background-color: #55efc4;
}

.edit-donor {
    background-color: #fdcb6e;
    color: white;
}

.edit-donor:hover {
    background-color: #ffeaa7;
}

.delete-donor {
    background-color: #d63031;
    color: white;
}

.delete-donor:hover {
    background-color: #ff7675;
}

/* Responsive  */
@media (max-width: 768px) {
    #search-donor {
        width: 180px;
    }

    .table-data th,
    .table-data td {
        font-size: 0.85rem;
        padding: 8px;
    }

    .view-donor,
    .edit-donor,
    .delete-donor {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 500px) {
    .table-data,
    .table-data thead,
    .table-data tbody,
    .table-data th,
    .table-data td,
    .table-data tr {
        display: block;
    }

    .table-data tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ccc;
    }

    .table-data td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .table-data td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        font-weight: bold;
        text-align: left;
    }

    .table-data th {
        display: none;
    }
}
