.people-variations-page {

    /* Table cells */
    td {
        vertical-align: middle;
        padding: 8px;
        white-space: normal;
        text-align: left;
    }

    textarea.variations-list {
        resize: none;
    }

    textarea.person-name {
        border: none;
        resize: none;
    }

    textarea.variations-list {
        border-left: 1px solid var(--primary-color);
        border-right: 1px solid var(--primary-color);
        resize: none;
        width: 100%;
        white-space: pre;
        overflow-x: auto;
        overflow-y: auto;
        word-break: normal;
        line-height: 1.5;
    }

    textarea.edit-variations-list {
        white-space: pre;
        overflow-x: auto;
        overflow-y: auto;
        word-break: normal;
        resize: none;
        line-height: 1.5;
    }

    textarea.edit-mode {
        border: 1px solid var(--primary-color);
        resize: none;
    }

    /* Fix the table layout */
    .table {
        table-layout: auto;
        width: 100%;
        border-collapse: collapse;
        /* Prevents gaps between cells */
    }

    /* Responsive table styling */
    .table th,
    .table td {
        word-wrap: break-word;
        /* Ensures long text will wrap instead of overflow */
    }

    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 10%;
    }

    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 15%;
    }

    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 25%;
    }

    .table th:nth-child(4),
    .table td:nth-child(4) {
        width: 40%;
    }

    .table th:nth-child(5),
    .table td:nth-child(5) {
        width: 10%;
        text-align: center;
    }

    /* Images */
    .people-image,
    .placeholder {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: var(--white-color);
        text-align: left;
        background-color: var(--second-accent-color);
    }

    .update-image {
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        text-align: center;
    }

    .savecancelbtn-section {
        display: flex;
        gap: .5rem;
        flex-direction: column;
    }

    /* Media Queries */
    /* @media (max-width: 1024px) {
        .table th:nth-child(1), .table td:nth-child(1) {
            width: 15%;
        }

        .table th:nth-child(2), .table td:nth-child(2) {
            width: 20%;
        }

        .table th:nth-child(3), .table td:nth-child(3) {
            width: 30%;
        }

        .table th:nth-child(4), .table td:nth-child(4) {
            width: 25%;
        }

        .table th:nth-child(5), .table td:nth-child(5) {
            width: 10%;
        }
    } */

    @media (max-width: 768px) {
        td {
            font-size: 12px;
            padding: 6px;
        }

        .people-name-no-image {
            font-size: 1em;
        }

        .table th,
        .table td {
            font-size: 0.9rem;
            padding: 5px;
        }

        .table {
            table-layout: auto;
        }
    }

    @media (max-width: 520px) {
        td {
            font-size: 11px;
            padding: 4px;
        }

        .people-image,
        .placeholder {
            width: 60px;
            height: 60px;
        }

        .btn-update-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .update-image {
            width: 60px;
            font-size: 0.9rem;
            white-space: normal;
        }        

        .table th,
        .table td {
            font-size: 0.8rem;
        }

        .savecancelbtn-section {
            display: flex;
            gap: .5rem;
            flex-direction: column;
            font: .8rem;
        }
    }

    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: var(--primary-color);
        color: var(--white-color);
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: none;
        text-align: center;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 24px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .scroll-to-top:hover {
        background-color: var(--secondary-color);
    }

    /* Stylized error and success messages */
    .alert {
        font-size: 0.9rem;
        padding: 10px;
        text-align: center;
        border-radius: 5px;
        margin-top: 10px;
        width: 100%;
    }

    .alert-danger {
        background-color: var(--error-color);
        color: var(--white-color);
        border-color: var(--error-color);
    }

    .alert-success {
        background-color: var(--success-color);
        color: var(--white-color);
        border-color: var(--success-color);
    }

    .crop-container {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        border: 2px solid #ccc;
    }

    .crop-preview {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid;
    }

    .cropper-crop-box {
        resize: both;
        position: absolute;
    }

}