/*------------  Admin Settings ------------*/
.Profile-page-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ProfilePanel-toggle-buttons {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
}

.toggle-btn-profile {
    writing-mode: vertical-rl;
    height: 120px;
    min-width: 48px;
    white-space: nowrap;
}

.Profile-content {
    width: 100%;
    height: 100%;
    padding-right: 55px;
}

/*------------- OnlineUserList ----------*/
.online-users-container {
    height: 200px;
    overflow-y: auto;
}
/*--------------- SearchUser--------------*/
.search-user {
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 24px;
    background-color: var(--lightgray-color);
    transition: width 0.3s ease;
    overflow: hidden;
}


    .search-user.open {
        width: 100%;
        display: flex;
    }


.search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--black-color);
    font-size: 18px;
}


.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
    background: transparent;
    color: var(--black-color);
}


    .search-input::placeholder {
        color: var(--black-color);
        opacity: .7;
    }

/*-------------------------------------
            Security Settings
 --------------------------------------*/
.security-settings {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
}

.security-settings-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.security-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
    min-height: 0;
}

    .security-card:first-child {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: 100%;
    }

        .security-card:first-child .security-card-body {
            padding: 0 1.25rem;
            overflow-y: auto;
            min-height: 0;
        }

.security-card-header {
    padding: .7rem 1rem;
    background-color: var(--lightgray-color);
    border-bottom: 1px solid #e9ecef;
}

.security-card-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.security-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.security-card-body {
    padding: 0 1.25rem;
    overflow-y: auto;
    min-height: 0;
}

.setting-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .setting-row:last-child {
        border-bottom: none;
    }

.setting-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

    .setting-info > span {
        font-weight: 600;
        color: var(--black-color);
        font-size: smaller;
    }

    .setting-info small {
        color: #8a8f98;
        font-size: .6rem;
    }

.setting-control {
    min-width: 110px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.setting-number {
    width: 90px;
    text-align: center;
    border-radius: 10px;
}

.input-with-label {
    gap: .5rem;
}

    .input-with-label > span {
        color: #6c757d;
        font-size: .85rem;
        min-width: 45px;
    }

.form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
}

.security-actions {
    display: flex;
    justify-content: flex-start;
    gap: .75rem;
    padding: .5rem;
    margin-top: auto;
}

@media (max-width: 768px) {

    .security-settings {
        padding: .5rem;
    }

    .setting-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .setting-control {
        width: 100%;
        justify-content: flex-start;
    }

    .security-actions {
        flex-direction: column;
    }

        .security-actions button {
            width: 100%;
        }
}

/* ----------- UserInfo -------------*/
.cover-setting {
    border-radius: 20px 20px 0 0;
    height: 220px;
    object-fit: cover;
}

.profile-setting {
    /* width: 20%;
		position: absolute;
		left: 5%;
		top: 57%;
		border: 8px solid white;
		border-radius: 50%;
		background: white; */
    width: clamp(80px, 10vw, 170px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    position: absolute;
    left: 5%;
    bottom: calc(-1 * clamp(80px, 10vw, 170px) / 2);
    border: 5px solid white;
    border-radius: 50%;
    background: white;
}

.info-setting {
    padding-left: 30%;
    margin-top: 3%;
}
	/*---------------BlockListSettings ----------*/
.access-restriction-settings {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.restriction-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
}


.restriction-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    background-color: var(--lightgray-color);
    border-bottom: 1px solid #e9ecef;
}


.restriction-card-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}


    .restriction-card-title small {
        display: block;
        color: #8a8f98;
        font-size: .65rem;
        margin-top: .2rem;
    }


.restriction-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


.restriction-form {
    padding: 1.25rem;
}


.restriction-types {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
}


.restriction-type {
    flex: 1;
    min-height: 90px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    transition: .2s;
}


    .restriction-type:hover {
        border-color: var(--green-color);
    }


    .restriction-type.selected {
        border-color: var(--lightgray-color);
        background-color: var(--lightgray-color);
    }


.restriction-input-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: 1rem;
    width: 300px;
}


    .restriction-input-group label {
        font-weight: 600;
        font-size: .85rem;
    }


    .restriction-input-group small {
        color: #8a8f98;
        font-size: .65rem;
    }


.restriction-ip-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.restriction-time-section {
    margin-top: 1rem;
}


.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.days-container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}


.days-container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.day-toggle {
    min-width: 75px;
    padding: .55rem .9rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #fff;
    color: #6c757d;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s ease;
}

    .day-toggle:hover {
        border-color: var(--green-meno-color);
    }

    .day-toggle.active {
        background-color: var(--green-meno-color);
        border-color: var(--green-meno-color);
        color: #fff;
        font-weight: 600;
    }


.restriction-form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}


.restriction-list {
    display: flex;
    flex-direction: column;
}


.restriction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}


    .restriction-item:last-child {
        border-bottom: none;
    }


.restriction-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--lightgray-color);
    display: flex;
    align-items: center;
    justify-content: center;
}


.restriction-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}


    .restriction-item-info strong {
        font-size: .85rem;
    }


    .restriction-item-info span {
        font-size: .75rem;
        color: #6c757d;
    }


.empty-restriction-list {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #8a8f98;
    font-size: .8rem;
}


@@media (max-width: 768px) {

    .access-restriction-settings {
        padding: .5rem;
    }


    .restriction-card-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .restriction-types {
        flex-direction: column;
    }


    .restriction-ip-section,
    .time-inputs {
        grid-template-columns: 1fr;
    }


    .restriction-form-actions {
        flex-direction: column;
    }


        .restriction-form-actions button {
            width: 100%;
        }
}