:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --form-bg-color: #f7f7f7;
    --text-color: #333;
    --menu-bg-color: #0d1a26;
    --menu-text-color: #fff;
    --menu-link-color: #fff;
    --focus-color: #55aaff;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    background: var(--background-gradient);
    color: var(--menu-text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 98%;
    max-width: 450px;
    margin: 1vh auto 10px;
    padding: 1rem;
    background: var(--form-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--text-color);
    text-align: center;
}
.aboutpage {
    text-align: left;
}

/* Live Counter Section */
.live-total {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 0.9;
    padding: 0rem;
}

h1#message {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Form Styling */
form#signForm {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
form#signForm.hidden {
  display: none;
}

input#nameInput,
button#submitButton {
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

input#nameInput:focus {
    outline: none;
    border-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(85, 170, 255, 0.3);
}

button#submitButton {
    cursor: pointer;
    background: var(--primary-color);
    color: var(--menu-text-color);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
}

button#submitButton:hover,
button#submitButton:focus {
    background: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button#clearName {
    margin-top: -1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    text-align: right;
    transition: color 0.2s;
}

button#clearName:hover {
    color: var(--text-color);
}

.hidden {
    display: none;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown */
.dropdown {
    position: absolute;
    background: #fff;
    color: var(--text-color);
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}

.highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.dropdown-item:hover .highlight {
    color: #fff;
}

/* Header Styles */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--menu-bg-color);
    color: var(--menu-text-color);
    padding: 12px 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
}

.menu-header a {
    color: var(--menu-link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.menu-header a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.menu-left,
.menu-cell {
    flex: 1;
    padding: 0 0.5rem;
    white-space: nowrap; /* Prevents wrapping for short strings */
}
.menu-left {
    color: red;
    font-weight: bold;
    text-align: left;
}
.menu-cell {
    text-align: center;
}

/* Filter Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color); /* rgba(255, 255, 255, 0.2); */
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 0.9rem;
}

.buttons button:hover {
    background: var(--secondary-color); /* rgba(255, 255, 255, 0.4); */
}

/* ensure toggle buttons for bulk form are visible */
table input.name-toggle {
  all: unset; /* resets inherited styles */
  appearance: checkbox;
  display: inline-block;
}

input.name-toggle {
  appearance: checkbox; /* restores native checkbox look */
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 5px;
}
