body { font-family: 'Courier New', monospace; background: #00081a; color: #eee; margin: 20px; }
h1, h2 { color: #0ff; text-shadow: 0 0 5px #0ff; }
table { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-size: 14px; }
th, td { padding: 10px; border: 1px solid #0aa; text-align: left; vertical-align: middle; }
th { background: #005; }
button { background: #00a; color: white; border: none; border-radius: 5px; cursor: pointer; padding: 5px 10px; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background-color: #007; }
button:hover { background: #00f; }
button:disabled { background: #555; cursor: not-allowed; }
.stats-container { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.stat-box { background: #001f3f; padding: 20px; border-radius: 5px; text-align: center; flex-grow: 1; min-width: 200px; }
.stat-box h3 { margin-top: 0; color: #0ff; }
.stat-box p { font-size: 2em; margin: 0; }
#loading { font-size: 1.5em; color: #ffd700; }
#error { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); border: 1px solid #ff6b6b; padding: 15px; border-radius: 5px; }
.actions-cell {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}
.actions-cell button { width: 38px; height: 38px; font-size: 18px; padding: 0; line-height: 38px; text-align: center; flex-shrink: 0; }
.toggle-admin-btn { background-color: #6f42c1; border: 1px solid #8a63d2; } /* A purple for admin actions */
.ban-btn { background-color: #a00; border: 1px solid #f55; }
.view-scores-btn { background-color: #08a; border: 1px solid #5ff; }
.view-scores-btn:hover { background-color: #0af; }
.edit-username-btn { background-color: #f0ad4e; border: 1px solid #eea236; color: #fff; }
.edit-username-btn:hover { background-color: #ec971f; }
.ban-btn:hover { background-color: #c00; }
.delete-btn { background-color: #dc3545; border: 1px solid #ff7b7b; }
.send-email-btn { background-color: #17a2b8; border: 1px solid #17a2b8; }
.send-email-btn:hover { background-color: #138496; }
.cancel-btn { background-color: #6c757d; border: 1px solid #888; }
.cancel-btn:hover { background-color: #5a6268; }
.delete-btn:hover { background-color: #b02a37; }
.unban-btn { background-color: #080; border: 1px solid #5f5; }
.resend-btn { background-color: #ffc107; color: #212529; border: 1px solid #ffc107; }
.resend-btn:hover { background-color: #e0a800; }
.bulk-actions-container {
    padding: 10px;
    background: #001f3f;
    border: 1px solid #0aa;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none; /* Hidden by default */
}
.sort-indicator { margin-left: 5px; opacity: 0.7; display: inline-block; width: 1em; }
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}
.modal-content {
    background-color: #001f3f;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #0ff;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
#user-scores-list { list-style: none; padding: 0; max-height: 400px; overflow-y: auto; }
#user-scores-list li { padding: 8px; border-bottom: 1px solid #0aa; }
#user-scores-list li:last-child { border-bottom: none; }
#user-scores-list span { float: right; color: #ffd700; font-weight: bold; }
#user-scores-modal h2, #edit-username-modal h2, #send-email-modal h2 { margin-top: 0; }
.form-error {
    min-height: 1.2em;
    margin: 5px 0;
    font-size: 14px;
    color: #ff6b6b;
    text-align: left;
}
.modal-actions {
    text-align: right;
    margin-top: 20px;
}

