/* General body style */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container for all pages */
.login-container {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #aaa;
}

/* Headings */
h2 {
    text-align: center;
    color: #333;
}

/* Input & button styles */
input, button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background: orange;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: darkorange;
}

/* Table styles for admin.php */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #f9f9f9;
    font-weight: bold;
}

/* Responsive for small screens */
@media screen and (max-width: 768px) {
    .login-container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    table thead {
        display: none; /* Hide table header */
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        background: #fff;
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .btn {
    display: inline-block;
    padding: 10px 15px;
    background: green;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: darkgreen;
}


    table td:last-child {
        border-bottom: none;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
}
