* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
body {
    background: linear-gradient(45deg, darkblue, lightblue);
    min-height: 100vh;
    padding: 50px;

    display: flex;
    align-items: center;
    flex-direction: column;
}
section {
    background: white;
    padding: 20px 40px;
    margin: 30px 0px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
    width: 60vw;

    display: flex;
    flex-direction: column;
    align-items: center;

    & > section {
        width: 50vw;
        display: block;
    }
    &.options {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    &.result {
        & > h2 {
            margin-bottom: 10px;
        }
        & > p {
            line-height: 1.5;
            text-wrap: wrap;
        }
    }
    &.options, &.result {
        min-width: 220px;
    }
}
header {
    margin-bottom: 50px;
    color: white;
    font-size: 1.5rem;
    text-align: center;
}
footer {
    margin-top: 50px;
    color: white;
    position: sticky;
    top: 100vh;
}

/* --- Input Section --- */
.input-section {
    & h2 {
        margin-bottom: 5px;
    }
    & .input-description {
        color: #666;
        margin-bottom: 15px;
    }
}
.input-methods {
    width: 100%;
}
.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}
.tab-btn {
    padding: 8px 20px;
    border: 2px solid rgb(0, 138, 184);
    border-radius: 16px;
    background: white;
    color: rgb(0, 138, 184);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;

    &:hover {
        background: rgba(0, 138, 184, 0.1);
        transform: scale(1.05);
    }
    &.active {
        background: rgb(0, 138, 184);
        color: white;
    }
}
.tab-content {
    display: none;
    &.active {
        display: block;
    }
}
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;

    &:focus {
        outline: none;
        border-color: rgb(0, 138, 184);
    }
}
.csv-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
        border-color: rgb(0, 138, 184);
        background: rgba(0, 138, 184, 0.05);
    }
}
.upload-icon {
    font-size: 2rem;
}
.upload-text {
    font-weight: bold;
    color: rgb(0, 138, 184);
}
.file-name {
    font-size: 0.85rem;
    color: #888;
}
.csv-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
}
#load-names {
    margin-top: 15px;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
}

/* --- People Section --- */
.people-section {
    & .people-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    & .people-actions {
        display: flex;
        gap: 8px;
    }
}
.list-of-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    width: 100%;
    text-align: left;
}
.danger-btn {
    background-color: #d9534f;
    &:hover {
        background-color: #c9302c;
    }
    &:active {
        background-color: #ac2925;
    }
}

/* --- Existing styles --- */
.person, .deselect-after-picked {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;

    & > * {
        cursor: pointer;
    }
}
button {
    padding: 5px 10px;
    border: none;
    border-radius: 16px;
    background-color: rgb(0, 138, 184);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: rgb(0, 100, 135);
        transform: scale(1.05);
    }
    &:active {
        background-color: rgb(0, 80, 110);
        transform: scale(0.95);
    }
}
.selected {
    text-decoration: line-through;
    opacity: 0.5;
}
input[type="number"] {
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid #ccc;
    width: 50px;
}
