body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 20px;
}
header {
    font-size: 2em;
    color: #6a1b9a;
    text-align: center;
    margin-bottom: 20px;
}
.desc {
    font-size: 1.2em;
    text-align: center;
    color: #555;
}
input[type="number"] {
    width: 4ch; /* Set width to 4 characters */
    height: 40px; /* Set height for square appearance */
    text-align: center; /* Center text */
    font-size: 1.5em; /* Increase font size */
    margin: 5px; /* Add some margin */
    border: 2px solid #6a1b9a;
    border-radius: 5px; /* Rounded corners */
}
.spinner {
    display: none; /* Hidden by default */
    margin: 10px auto;
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #6a1b9a; /* Purple */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.groups-columns {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    margin: 10px; /* Optional: Add some spacing between columns */
}
.number-groups {
    text-align: left;
    margin: 20px 0;
    position: relative;
}
.number-groups h3 {
    color: #6a1b9a;
    margin-bottom: 10px;
}
.number-groups ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.number-groups li {
    color: #333;
    padding: 8px 15px;
    margin: 0;
    background: white;
    border: 1px solid #9c27b0;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9em;
}
.number-groups li:hover {
    transform: none;
    background: none;
}
button {
    background-color: #6a1b9a;
    color: white;
    border: none; /* No border */
    padding: 10px 20px; /* Padding */
    text-align: center; /* Center text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline-block */
    font-size: 1.2em; /* Font size */
    margin: 10px;
}
button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 10px 20px; /* Padding */
    text-align: center; /* Center text */
    text-decoration: none; /* No underline */
    display: inline-block; /* Inline-block */
    font-size: 1.2em; /* Font size */
    margin: 10px 2px; /* Margin */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, transform 0.3s; /* Transition effects */
}
button:hover {
    background-color: #8e24aa;
    transform: scale(1.05); /* Slightly enlarge on hover */
}
ul {
    margin: 0;
    padding: 0;
    list-style-type: decimal;
    padding-left: 20px;
}
li {
    color: #333;
    padding: 5px 0;
    margin: 0;
    background: white;
}
.centered-box {
    max-width: 800px;
    text-align: center;
    border-radius: 5%;
    border: #8e24aa;
    padding: 5%;
    background-color: #f3e5f5;
    background: linear-gradient(135deg, #33e5f5, #00bee7);
    margin: 0 auto;
    margin-right: 16vw;
}
.delete-section {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.delete-section button {
    background-color: #9c27b0;
    color: white;
    white-space: nowrap;
}
.delete-section span {
    color: #6a1b9a;
    font-size: 1.1em;
}
.delete-input {
    width: 60px !important;
    height: 40px;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid #9c27b0;
    border-radius: 5px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.confirm-delete {
    background-color: #9c27b0 !important;
}

.cancel-delete {
    background-color: #757575 !important;
}

.confirm-delete:hover {
    background-color: #7b1fa2 !important;
}

.cancel-delete:hover {
    background-color: #616161 !important;
}

#deletePreview ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

#deletePreview li {
    color: #333;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

#deletePreview li:last-child {
    border-bottom: none;
}

#deletePreview h4 {
    color: #6a1b9a;
    margin: 0;
    padding: 10px 0;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.sidebar {
    width: 15vw;
    min-width: 200px;
    background: linear-gradient(135deg, #e1bee7, #ce93d8);
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
}

.sidebar h3 {
    color: #6a1b9a;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar li {
    color: #333;
    padding: 5px 0;
    margin: 0;
    border-bottom: 1px solid rgba(106, 27, 154, 0.2);
}

.collapsible-list details {
    margin-bottom: 10px;
}

.collapsible-list summary {
    cursor: pointer;
    color: #6a1b9a;
    font-weight: bold;
    padding: 5px 0;
}

.collapsible-list details ul {
    margin-left: 20px;
}

.import-section {
    margin: 0;
    display: flex;
    justify-content: center;
}

.import-section button {
    background-color: #9c27b0;
    color: white;
}

#importNumbers {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #9c27b0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1.1em;
    resize: vertical;
}

.import-instructions {
    color: #6a1b9a;
    font-size: 0.9em;
    margin: 5px 0;
    text-align: center;
}

.confirm-import {
    background-color: #9c27b0 !important;
}

/* Add these styles for the error dialog */
.error-content {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border: 1px solid #ef9a9a !important;
}

.error-content h4 {
    color: #c62828;
    margin: 0;
    padding: 10px 0;
}

#errorMessage {
    background-color: rgba(198, 40, 40, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    white-space: pre-wrap;
    font-family: monospace;
    color: #c62828;
    max-height: 200px;
    overflow-y: auto;
}

.close-error {
    background-color: #c62828 !important;
    color: white !important;
}

.close-error:hover {
    background-color: #b71c1c !important;
}

/* Add these styles */
.delete-latest-section {
    margin: 0;
    display: flex;
    justify-content: center;
}

.delete-latest-section button {
    background-color: #9c27b0;
    color: white;
}

.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.feature-buttons button {
    background-color: #9c27b0;
    color: white;
    padding: 8px 15px;
    font-size: 1em;
}

.section-header {
    margin: 0 0 10px 0;
    background-color: #9c27b0;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1em;
}

/* Add styles for sidebar row delete buttons */
.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.delete-row {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
    border-radius: 3px;
    display: none;
}

.sidebar-row:hover .delete-row {
    display: block;
}

.delete-row:hover {
    background-color: #ffebee;
    color: #c62828;
}
