body {
    font-family: 'Inter', sans-serif;
    margin: 20px;
    text-align: center;
    position: relative;
    background-color: #F5F5F7;
    color: #1F1F1F;
}

#header {
    margin-bottom: 20px;
    text-align: center;
}

#header img {
    max-width: 100%;
    height: auto;
}

#input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#input-container div {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

#table-input-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
}

input {
    width: 200px;
    padding: 10px;
    border: 1px solid #D1D1D6;
    border-radius: 10px;
    text-align: left;
    background-color: #FFFFFF;
    font-size: 16px;
}

#table-number {
    width: 80px;
}

button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

button:hover {
    background-color: #0056b3;
}

#clear-button {
    background-color: #DC3545;
    margin-left: 10px;
}

#clear-button:hover {
    background-color: #C82333;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1F1F1F;
}

#table-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#table-list li {
    background-color: #FFFFFF;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#table-list li:first-child {
    background-color: #28A745;
    color: white;
}

.table h3 {
    margin: 0;
    color: #1F1F1F;
    font-size: 18px;
    font-weight: 600;
}

.participant {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    color: #1F1F1F;
    cursor: grab;
}

.participant .details {
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.participant-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
}

.participant-buttons button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.participant-buttons .delete {
    background-color: #DC3545;
}

.participant-buttons .edit {
    background-color: #FFC107;
}

.participant-buttons button:hover {
    opacity: 0.8;
}

#version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .participant-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    input {
        width: calc(100% - 20px);
    }
}
