.profile {
    display: flex;
    align-items: center;
}

.profile-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.profile-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-id {
    background-color: #e0e0e0;
    color: #333;
    padding: 2px 6px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #ccc;
}

.profile-pipe {
    margin: 0 2px;
    color: #888;
}

.profile-photo {
    margin-right: 70px;
}

.profile-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details p {
    margin: 0;
}

.profile-details h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 4px 0;
}

.admin-details p,
.profile-details p {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 15px;
}

.admin-header {
    margin-bottom: 18px;
}

.admin-title {
    font-size: 20px;
    font-weight: bold;
}

.admin-lists h2 {
    font-size: 15px;
    font-weight: bold;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 38px;
}

.admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1028px) {
    .admin-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 770px) {
    .admin-cards {
        grid-template-columns: 1fr;
    }

    .profile {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 16px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .profile-id-row {
        justify-content: center;
    }

    .profile-details {
        width: 100%;
        text-align: center;
    }

    .preferred-lang {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 545px) {
    .preferred-lang-container {
        flex-direction: column;
    }
}

.admin-profile-photo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.admin-details {
    flex: 1;
}

.admin-profile-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.admin-profile-id {
    background-color: #e0e0e0;
    color: #333;
    padding: 0.5px 4px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ccc;
}

.admin-details p {
    margin: 0;
    font-size: 12px;
}

.admin-details h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 2px 0;
}

.preferred-lang {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preferred-lang-container {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.preferred-lang-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.preferred-lang-form label {
    display: block;
    flex-wrap: nowrap;
    font-size: 15px;
    font-family: DT-demi, Arial, sans-serif;
    font-weight: unset;
}

.preferred-lang-form select,
.preferred-lang-form button {
    min-width: 0;
    width: auto;
    max-width: 100%;
}

#edit-icon {
    margin-left: 4px;
    cursor: pointer;
    display: inline-block;
    transform: scaleX(-1);
    vertical-align: middle;
}

.custom-dropdown {
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    /* Safari/Chrome */
    -moz-appearance: none;
    /* Firefox */
    padding: 0px 30px 0px 10px;
    border: 1px solid #000;
    font-size: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="24" height="24" fill="%23e0e0e0"/><path d="M7 10l5 5 5-5z" fill="%23333"/></svg>');
    background-repeat: no-repeat;
    background-position: right -1px center;
    background-size: 24px 24px;
    cursor: pointer;
}

.btn-update {
    padding: 2px 8px;
    background-color: #000;
    color: #ffffff;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.btn-cancel {
    padding: 2px 8px;
    background-color: #ccc;
    color: #333;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

#spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}