.custom-modal {
    display: none;
    height: 0%;
    position: absolute;
    top: -100%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: var(--borderRadiusLarge);
    opacity: 0;

    background: rgba(var(--clr-background));
    box-shadow: 0 4px 30px rgba(rgb(var(--clr-textPrimary)), 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgb(var(--clr-secondary));
    padding: 2.5rem;
    border-radius: var(--borderRadiusLarge);
}

.custom_modal_tos {
    width: 70%;
    height: 70%;
    left: 15%;
    top: 15%;
}

.custom-modal-header, .custom-modal-footer {
    flex-shrink: 0;
	height: var(--custom-modal-header-height);
}

.custom-modal-footer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition:
        max-height 0.6s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
}

.custom-modal-footer .btn {
    transition: opacity 0.3s ease;
}

.custom-modal-footer.is-visible {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.custom-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.custom-modal-img-avatar {
    width: var(--custom-modal-avatar-size);
    height: var(--custom-modal-avatar-size);
    border-radius: var(--custom-modal-avatar-size);
    object-fit: cover;
}

.custom-modal-row-item {
    border-bottom: 1px solid rgb(var(--clr-white));
    border-radius: 0;
    padding: 10px;
}

.custom-modal .table-header {
    border-radius: var(--borderRadiusMedium);
    padding: 5px 20px;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal {
    pointer-events: auto;
    z-index: 1000;
}

.modalProfile .userInfoRow {
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgb(var(--clr-secondary));
}

.custom-modal .bets-history-content {
    height: calc(100dvh - 410px) !important;
    overflow: hidden auto;
}

.custom-modal-content-tab {
    padding:5px 10px;
    cursor: pointer;
}

.custom-modal-content-tab.active {
    color: rgb(var(--clr-primary));
    border-bottom: 1px solid rgb(var(--clr-primary));
    font-weight: bold;
}

.custom-modal-content-tab-content,.divBtnsUserProfileModal { display: none; }
.custom-modal-content-tab-content.active, .divBtnsUserProfileModal.active { display: flex; }

.form-control {
    color: rgb(var(--clr-white));
    background-color: rgb(var(--clr-background));
    border: 1px solid rgb(var(--clr-secondary));
}

.form-control:disabled, .form-control[readonly] {
    background-color: rgb(var(--clr-background));
    border: 1px solid rgb(var(--clr-secondary));
	color: rgb(var(--clr-white));
	cursor: not-allowed;
}

.form-control:focus {
    color: rgb(var(--clr-white));
    background-color: rgb(var(--clr-background));
    border: 1px solid rgb(var(--clr-secondary));
    outline: 0;
    box-shadow: none;
}

.custom-modal-content-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background-color: rgb(var(--clr-background));
    color: rgb(var(--clr-textPrimary));
    border-radius: var(--borderRadiusMedium);
}

.custom-modal-wrapper {
	height: calc(100% - var(--custom-modal-header-height));
}

@media (max-width: 768px) {
    :root {
        --custom-modal-avatar-size: 100px;
        --team-logo-size: 20px;
    }

    .custom-modal-mobile-sections {
        height: 50dvh;
        overflow: hidden auto;
        padding: 5px;
    }

    .custom-modal-mobile-sections.auto {
        height: auto;
    }

    .home-team-img, .away-team-img {
        width: var(--team-logo-size);
        height: var(--team-logo-size);
        object-fit: contain;
    }
}
