/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Upload, crop avatar */
.users-av-wraper {
    position: relative;
    width: 630px;
    min-height: 100%;
    background: #f7f7f7;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 13px;
}

.users-av-wraper > form > div {
    position: relative;
    padding: 15px 0 0 15px;
}

.users-av-wraper > form > div:first-child {
    background-color: #efefef;
    min-height: 400px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.users-avupload {
    position: relative;
    width: 100%;
    height: 100%;
}

.users-avupload .upload-button {
    display: table;
    width: 100%;
    height: 380px;
    cursor: pointer;
}

.users-avupload .upload-button > div {
    display: table-row;
}

.users-avupload .upload-button > div > span {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.users-avupload .upload-button > div > span > em {
    display: inline-block;
    width: 100px;
    height: 100px;
    font-size: 40px;
    text-align: center;
    color: #fff;
    background-color: #1182c8;
    line-height: 100px;
    border-radius: 50px;
}

.users-avupload .upload-button:hover em {
    background-color: #205fa0;
}

.users-avupload .img-area {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.users-avupload .img-area img {
    width: 100%;
}

.users-av-wraper .guide {
    padding: 8px;
    background: #d8eaf8;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.users-av-wraper .exit-bt {
    position: fixed;
    top: 380px;
    right: 30px;
}

/* EDIT INFO */
#change-photo {
    display: none;
}

.tn-account-settings {
    width: 100%;
    max-width: none;
    margin: 0 0 32px;
}

.tn-account-settings__head {
    margin: 18px 0 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #eef8ff 0%, #ffffff 65%);
    border: 1px solid #d8ecfb;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(3, 116, 188, 0.08);
}

.tn-account-settings__title {
    margin: 0 0 6px;
    color: #0f3554;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tn-account-settings__desc {
    margin: 0;
    color: #5c7286;
    font-size: 14px;
}

.tn-account-tabs {
    border: 0;
    margin-bottom: 14px !important;
}

.tn-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    margin: 0 0 16px !important;
    background: #f6fbff;
    border: 1px solid #dcecf8;
    border-radius: 18px;
}

.tn-account-actions:before,
.tn-account-actions:after {
    display: none;
}

.tn-account-actions > li {
    float: none;
    margin: 0;
}

.tn-account-actions > li > a,
.tn-account-tabs > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 16px !important;
    color: #0f3554;
    background: #ffffff;
    border: 1px solid #d7e6f1;
    border-radius: 999px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 53, 84, 0.05);
}

.tn-account-actions > li.active > a,
.tn-account-actions > li.active > a:hover,
.tn-account-actions > li.active > a:focus,
.tn-account-actions > li > a:hover,
.tn-account-actions > li > a:focus {
    color: #ffffff;
    background: #0374bc;
    border-color: #0374bc;
}

.tn-account-card {
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(15, 53, 84, 0.08);
    overflow: hidden;
}

.tn-account-card .well-lg {
    margin: 0;
    padding: 28px;
    background: #ffffff;
    border: 0;
    box-shadow: none;
}

.tn-account-card .form-detail {
    max-width: 100%;
}

.tn-account-card .form-group {
    margin-bottom: 18px;
}

.tn-account-card .control-label {
    color: #34495e;
    font-weight: 600;
}

.tn-account-card .form-control {
    height: 42px;
    border-color: #dce7f0;
    border-radius: 10px;
    box-shadow: none;
}

.tn-account-card textarea.form-control {
    min-height: 96px;
    height: auto;
}

.tn-account-card .form-control:focus {
    border-color: #0374bc;
    box-shadow: 0 0 0 3px rgba(3, 116, 188, 0.12);
}

.tn-account-card select.form-control {
    min-width: 170px;
    color: #24384a;
    background-color: #fff;
}

.tn-account-card .btn {
    border-radius: 999px;
    padding-left: 18px;
    padding-right: 18px;
}

.tn-account-card .btn-primary {
    background: #0374bc;
    border-color: #0374bc;
}

.tn-account-card .btn-primary:hover,
.tn-account-card .btn-primary:focus {
    background: #025f9c;
    border-color: #025f9c;
}

.users-menu > li > a {
    padding: 8px 10px !important;
}

/* MEMBER INFO */
.tn-member-info,
.tn-member-public {
    margin-bottom: 28px;
}

.tn-member-info.panel {
    border: 1px solid #e3edf5;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(15, 53, 84, 0.08);
    overflow: hidden;
}

.tn-member-info > .panel-body {
    padding: 0;
}

.tn-member-info__hero,
.tn-member-public__hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 18px;
    padding: 28px;
    background: linear-gradient(135deg, #eef8ff 0%, #ffffff 70%);
    border: 1px solid #dcecf8;
    border-radius: 20px;
}

.tn-member-info__hero {
    border: 0;
    border-radius: 0;
    margin: 0;
}

.tn-member-info__avatar {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

.tn-member-info__avatar > div {
    width: 108px !important;
    text-align: center;
}

.tn-member-info__avatar img,
.tn-member-public__hero img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(3, 116, 188, 0.18);
}

.tn-member-info__avatar figcaption,
.tn-member-public__hero .col-sm-6 {
    color: #5f7488;
    font-size: 13px;
}

.tn-member-info__summary {
    min-width: 0;
    flex: 1;
}

.tn-member-info__summary h2,
.tn-member-public__hero h2 {
    margin: 0 0 12px;
    color: #0f3554;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tn-member-info__summary .nv-list-item,
.tn-member-public__hero .nv-list-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tn-member-info__summary .nv-list-item li,
.tn-member-public__hero .nv-list-item li {
    padding: 10px 12px;
    color: #334e68;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2edf6;
    border-radius: 12px;
}

.tn-member-info__summary .fa,
.tn-member-public__hero .fa {
    color: #0374bc;
}

.tn-member-info__table,
.tn-member-public__table {
    padding: 22px 28px 4px;
}

.tn-member-public__table {
    padding-left: 0;
    padding-right: 0;
}

.tn-member-info__table .table,
.tn-member-public__table .table {
    margin-bottom: 0;
    border: 1px solid #e4edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 53, 84, 0.05);
}

.tn-member-info__table .table > tbody > tr > td,
.tn-member-public__table .table > tbody > tr > th,
.tn-member-public__table .table > tbody > tr > td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: #edf3f8;
}

.tn-member-info__table .table > tbody > tr > td:first-child,
.tn-member-public__table .table > tbody > tr > th {
    width: 28%;
    color: #0f3554;
    font-weight: 700;
    background: #f7fbff;
}

.tn-member-info__actions,
.tn-member-public__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    float: none;
    margin: 18px 28px 26px;
}

.tn-member-public__actions {
    margin-left: 0;
    margin-right: 0;
}

.tn-member-info__actions:before,
.tn-member-info__actions:after,
.tn-member-public__actions:before,
.tn-member-public__actions:after {
    display: none;
}

.tn-member-info__actions > li,
.tn-member-public__actions > li {
    float: none;
}

.tn-member-info__actions > li > a,
.tn-member-public__actions > li > a {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    color: #0374bc;
    background: #eef8ff;
    border: 1px solid #cfe6f7;
    border-radius: 999px;
    font-weight: 600;
}

.tn-member-info__actions > li > a:hover,
.tn-member-info__actions > li > a:focus,
.tn-member-public__actions > li > a:hover,
.tn-member-public__actions > li > a:focus {
    color: #ffffff;
    background: #0374bc;
    border-color: #0374bc;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .tn-account-settings__head {
        padding: 18px;
        border-radius: 14px;
    }

    .tn-account-settings__title {
        font-size: 22px;
    }

    .tn-account-card .well-lg {
        padding: 18px;
    }

    .tn-account-card .form-detail {
        max-width: none;
    }

    .tn-account-actions {
        gap: 8px;
        padding: 10px;
    }

    .tn-account-actions > li > a {
        min-height: 34px;
        padding: 7px 12px !important;
        font-size: 13px;
    }

    .tn-member-info__hero,
    .tn-member-public__hero {
        display: block;
        padding: 20px;
        text-align: center;
    }

    .tn-member-info__avatar {
        margin: 0 auto 16px;
    }

    .tn-member-info__summary .nv-list-item,
    .tn-member-public__hero .nv-list-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .tn-member-info__table {
        padding: 16px;
    }

    .tn-member-info__actions {
        margin: 16px;
    }
}

/* LOGIN, REGISTER FORM BOX */
.login-box {
    width: 334px;
}

@media (max-width: 399px) {
    .login-box {
        width: 100%;
    }
}

.user-reg-form .form-detail .form-group > label {
    font-weight: 500;
}

.login-box img.logo {
    max-width: 100%;
    height: auto;
}

.openid-btns {
    border-top: 1px #fff solid;
    padding-top: 15px;
}

.openid-btns .btn-group {
    display: flex;
    width: 100%;
}

.openid-btns .btn-group button.btn {
    width: 40px;
    text-align: center;
}

.openid-btns .btn-group a.btn {
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.openid-google {
    color: #ffffff !important;
    background-color: #d9534f;
    border-color: #d43f3a;
}

.openid-google:focus {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #761c19;
}

.openid-google:hover {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.openid-google:active {
    color: #ffffff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.openid-google:active:hover,
.openid-google:active:focus {
    color: #ffffff;
    background-color: #ac2925;
    border-color: #761c19;
}

.openid-google:active {
    background-image: none;
}

.openid-google.disabled:hover,
.openid-google[disabled]:hover,
fieldset[disabled] .openid-google:hover,
.openid-google.disabled:focus,
.openid-google[disabled]:focus,
fieldset[disabled] .openid-google:focus {
    background-color: #d9534f;
    border-color: #d43f3a;
    cursor: inherit;
}

.openid-zalo {
    color: #ffffff !important;
    background-color: #0067ff;
    border-color: #0067ff;
}

.openid-zalo:focus,
.openid-zalo:hover,
.openid-zalo:active {
    color: #ffffff;
    background-color: #035adb;
    border-color: #035adb;
}

.openid-zalo:active {
    background-image: none;
}

.openid-zalo.disabled:hover,
.openid-zalo[disabled]:hover,
fieldset[disabled] .openid-zalo:hover,
.openid-zalo.disabled:focus,
.openid-zalo[disabled]:focus,
fieldset[disabled] .openid-zalo:focus {
    background-color: #035adb;
    border-color: #035adb;
    cursor: inherit;
}

.fa-zalo::before {
    font: normal normal bold 15px/1 Arial;
    content: "Z";
}

.openid-facebook {
    color: #ffffff !important;
    background-color: #428bca;
    border-color: #357ebd;
}

.openid-facebook:focus {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #193c5a;
}

.openid-facebook:hover {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #285e8e;
}

.openid-facebook:active {
    color: #ffffff;
    background-color: #3071a9;
    border-color: #285e8e;
}

.openid-facebook:active:hover,
.openid-facebook:active:focus {
    color: #ffffff;
    background-color: #285e8e;
    border-color: #193c5a;
}

.openid-facebook:active {
    background-image: none;
}

.openid-facebook.disabled:hover,
.openid-facebook[disabled]:hover,
.openid-facebook.disabled:focus,
.openid-facebook[disabled]:focus,
fieldset[disabled] .openid-facebook:focus {
    background-color: #428bca;
    border-color: #357ebd;
    cursor: inherit;
}

.openid-single-sign-on {
    color: #ffffff !important;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.openid-single-sign-on:focus {
    color: #ffffff;
    background-color: #449d44;
    border-color: #255625;
}

.openid-single-sign-on:hover {
    color: #ffffff;
    background-color: #449d44;
    border-color: #398439;
}

.openid-single-sign-on:active {
    color: #ffffff;
    background-color: #449d44;
    border-color: #398439;
}

.openid-single-sign-on:active:hover,
.openid-single-sign-on:active:focus {
    color: #ffffff;
    background-color: #398439;
    border-color: #255625;
}

.openid-single-sign-on:active {
    background-image: none;
}

.openid-single-sign-on.disabled:hover,
.openid-single-sign-on[disabled]:hover,
.openid-single-sign-on.disabled:focus,
.openid-single-sign-on[disabled]:focus,
fieldset[disabled] .openid-single-sign-on:focus {
    background-color: #5cb85c;
    border-color: #4cae4c;
    cursor: inherit;
}
