body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}


h1 {
    color: #e63946;
    text-shadow: 2px 2px 10px rgba(255, 0, 0, 0.6);
}


form {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

input[type="text"], input[type="password"] {
    padding: 8px;
    width: 250px;
    border: 2px solid #e63946;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 8px 12px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}


table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #222;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

th, td {
    padding: 12px;
    border: 1px solid #444;
}

th {
    background-color: #e63946;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

th:hover {
    background-color: #ff0000;
}

td {
    background-color: #333;
}


tbody tr:hover {
    background-color: #444;
    transform: scale(1.02);
    transition: 0.3s;
}


div {
    margin: 20px;
}

a {
    padding: 8px 12px;
    margin: 5px;
    background-color: #e63946;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}

a:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}


footer {
    margin-top: 20px;
    padding: 10px;
    background-color: #111;
    color: #888;
}

.add-record-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    margin: 20px auto;
}

.add-record-form form{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    margin: 20px auto;
}

.add-record-form, .edit-form form, .delete-form form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align forms to the left */
    margin: 20px auto;
    max-width: 400px; /* Set a maximum width for forms */
    width: 100%;
}

/* Form Input Styles */
.add-record-form input,
.edit-form input,
.delete-form input,
.add-record-form select,
.edit-form select,
.delete-form select,
.add-record-form button,
.edit-form button,
.delete-form button {
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #e63946;
}

/* Labels */
.add-record-form label,
.edit-form label,
.delete-form label {
    margin-bottom: 5px;
    color: #fff;
}

/* Button Styles */
.add-record-form button,
.edit-form button,
.delete-form button {
    background-color: #e63946;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.add-record-form button:hover,
.edit-form button:hover,
.delete-form button:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

/* Specific Styling for Edit and Delete Forms */
.edit-form input,
.delete-form input {
    width: 100%;
}

.edit-form button,
.delete-form button {
    background-color: #ff4d4d; /* Different color for delete action */
    border-radius: 5px;
}

#log, #register{
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    width:40%;
    
}

#username, #password{
    margin:auto;
}

#sublog{
    width:25%;
    margin:auto;
}

#subreg{
    width:25%;
    margin:auto;
}

#log label{
    margin-bottom: 5px;
    color: #fff;
}

#register label{
    margin-bottom: 5px;
    color: #fff;
}