/* Global dark theme settings */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: sans-serif;
}

/* Styled links with a cool accent color for dark mode */
a {
    color: #BB86FC;  /* A soft violet tint */
    text-decoration: none;
    padding: 6px;
}

/* Table styling for dark mode */
table {
    border-collapse: collapse;
    border: 1px solid #333;
    margin: 0 auto;
    width: 50%;
    font-size: 18px;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

table td {
    padding: 20px;
}

table td:last-child {
    text-align: right;
}

/* Header row styling: dark but with enough contrast */
table tr:first-child {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

/* Subtle separator for rows using a lighter dotted line */
table tr {
    border-bottom: 1px dotted #555;
}

/* Form tables can have a slightly different width for differentiation */
form table {
    width: 25%;
}

form table tr {
    vertical-align: top;
}

/* Ensure forms maintain readability in dark mode */
form table tr:first-child {
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-weight: normal;
}

form table tr:last-child {
    text-align: center;
}

/* Button styling with a smooth transition and dark mode colors */
.button {
    border: 1px solid #555;
    border-radius: 10px;
    background-color: #6200EE;
    color: #FFF;
    text-decoration: none;
    padding: 12px;
    min-width: 100px;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: #FFF;
    color: #6200EE;
    cursor: pointer;
}

/* Submit button styling matching .button */
input[type=submit] {
    border: 1px solid #555;
    border-radius: 10px;
    background-color: #6200EE;
    color: #FFF;
    padding: 12px;
    min-width: 100px;
    transition: background-color 0.3s, color 0.3s;
}

input[type=submit]:hover {
    background-color: #FFF;
    color: #6200EE;
    cursor: pointer;
}

/* Cancel button: using a neutral, dim gray that fits the dark theme */
input[type=submit].cancel {
    background-color: #424242;
    border: 1px solid #424242;
}

input[type=submit].cancel:hover {
    background-color: #FFF;
    color: #424242;
    cursor: pointer;
}

/* Utility class for floating elements */
.float-right {
    float: right;
}

/* Error message styling with a contrasting color for visibility */
.error { 
    color: #CF6679;
    font-size: 12px;
}
