/*********************/
/*   MAIN ELEMENTS   */
/*********************/

body {
    height: 100vh;
}

header {
    height: 60px;
}

main {
    position: relative;
    width: 100vw;
    height: calc(100vh - 100px);
    overflow: hidden;
}

footer {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,110,229,1) 40%, rgba(0,158,229,1) 90%);
    height: 40px;
}

label {
    font-weight: bold;
}

input,
select {
    border-radius: 0 !important;
}

input:focus {
    box-shadow: none !important;
}

.pointer {
    cursor: pointer;
}

.unmask {
    cursor: pointer;
    position: absolute;
    top: 0; right: 0;
}

/**************************/
/*   BOOTSTRAP OVERRIDE   */
/**************************/

.btn {
    border-radius: 0 !important;
    box-shadow: 0 8px 6px -6px rgba(0,0,0,.7);
}

.btn:focus {
    outline: unset !important;
    box-shadow: 0 8px 6px -6px rgba(0,0,0,.7) inset !important;
}

.bg-secondary-light {
    background-color: #a6b1ba !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.modal-dialog {
    justify-content: center;
    max-width: unset !important;
    margin: 0 !important;
}

.modal-content {
    width: auto !important;
    margin-left: 150px !important;
    margin-right: 150px !important;
}

/************************/
/*   MESSAGE ELEMENTS   */
/************************/

.msg-box {
    position: absolute;
    z-index: 100;
    top: 60px;
    right: 0;
}

#signin .msg-box {
    position: relative;
    top: 0;
}

#signin .msg-box .alert {
    max-width: 350px;
    width: 100%;
}

.msg-box.alert {
    width: 500px;
    max-width: calc(100vw - 150px);
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background-color: white;
    color: black;
}

.msg-box.alert .alert-heading {
    text-align: left;
    margin-bottom: 0;
    padding: 1rem;
    color: white;
}

.msg-box.alert p {
    padding: 1rem;
    margin-bottom: 0;
}

.msg-box.alert ul {
    text-align: left;
    padding: 0;
    margin-bottom: 0;
}

.alert-primary {
    border-color: rgba(44, 114, 230, 0.95);
}

.alert-primary .alert-heading {
    background-color: rgba(44, 114, 230, 0.95);
}

.alert-danger {
    border-color: rgba(230, 28, 35, 0.95);
}

.alert-danger .alert-heading {
    background-color: rgba(230, 28, 35, 0.95);
}

.alert-success {
    border-color: rgba(20, 180, 20, 0.95);
}

.alert-success .alert-heading {
    background-color: rgba(20, 180, 20, 0.95);
}

.alert-info {
    border-color: rgba(0,158,229,0.95);
}

.alert-info .alert-heading {
    background-color: rgba(0,158,229,0.95);
}

.alert .close {
    color: #fff;
}


/***********************/
/*   SIGNIN ELEMENTS   */
/***********************/

#signin {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,110,229,1) 40%, rgba(0,158,229,1) 90%);
}

.signin-box {
    background-color: #fcfcfc;
    box-shadow: 0 .5rem 1rem rgba(255,255,255,.8)!important;
    max-width: 350px;
    width: 100%;
    padding: 1.5rem;
    border-radius: .25rem;
    text-align: center;
}

.signin-box h1 {
    color: #0062cc;
    padding: .5rem .75rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}

.signin-box .logo {
    position: relative;
}

.signin-box .logo img {
    width: 100px;
}

.signin-box .form-group {
    position: relative;
}

.signin-box .form-control {
    height: auto;
    padding: .25rem .5rem;
    color: #03003e;
    border: 1px solid #0062cc;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.signin-box .btn {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.signin-box .unmask {
    top: 8px !important;
    right: 10px !important;
    color: #0062cc;
    font-size: 14pt;
}

/************************/
/*   MENUBAR ELEMENTS   */
/************************/

#menubar {
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,110,229,1) 40%, rgba(0,158,229,1) 90%);
    padding: 0 .5rem !important;
    height: 100%;
}

#menubar .navbar-toggler {
    padding: .25rem .6rem;
}

#menubar .navbar-toggler {
    color: rgba(255, 255, 255, .8) !important;
    padding: .25rem .6rem;
}

#menubar .form-inline .form-control {
    height: auto;
    padding: .25rem .5rem;
    color: #03003e;
    border: 1px solid #03003e;
    border-left: 0 !important;
    border-radius: 0;
    background-clip: unset;
}

#menubar .form-inline .btn {
    padding: .25rem .5rem;
    color: #03003e;
    border: 1px solid #03003e;
    border-right: 0 !important;
    border-radius: 0;
    background-color: #ffffff;
}

#menubar .form-inline .btn:hover,
#menubar .form-inline .btn:focus {
    background-color: #f0f0f0;
}

#menubar .nav-link {
    color: #ebebeb;
    font-size: 18pt;
    height: 60px;
}

#menubar .nav-link i {
    vertical-align: middle !important;
}

#menubar .nav-link:hover,
#menubar .nav-link:focus {
    color: #ffffff;
}

#menubar .avatar-img {
    width: 30px;
    height: auto;
    border-radius: 50%;
    vertical-align: middle !important;
}

@media (max-width: 991px) {
    #menubar .form-inline .form-control {
        width: 120px;
    }
}


/*************************/
/*   ASIDEBAR ELEMENTS   */
/*************************/

#sidebar {
    position: absolute;
    top: 0; left: 0;
    background-color: rgba(2,0,36,1);
}

#sidebar .nav-item {
    width: 200px;
    transition: width ease-in-out .5s;
}

#sidebar #sendBtn,
#sidebar .nav-link,
.settingbar .nav-link {
    display: flex;
    align-items: center;
    padding: 0;
}

#sidebar #sendBtn {
    margin: 5px;
}

#sidebar .nav-link {
    border-bottom: 1px solid rgba(2,0,36,1) !important;
    background-color: white;
    color: black;
}

#sidebar #sendBtn i {
    width: 50px;
    padding: .75rem;
    font-size: 13pt;
    text-align: center;
}

#sidebar .nav-link i,
.settingbar .nav-link i {
    width: 60px;
    padding: 1rem;
    font-size: 14pt;
    text-align: center;
}

#sidebar .nav-item.active i,
#sidebar .nav-link:hover i,
#sidebar .nav-link:focus i {
    background-color: #020024;
    color: white;
}

#sidebar #sendBtn span,
#sidebar .nav-link span,
.settingbar .nav-link span {
    text-align: center;
    width: 140px;
    font-size: 12pt;
    opacity: 1;
    transition: width ease-in-out .5s, opacity ease-in-out 1s;
}

#sidebar #sendBtn span {
    width: 120px;
    font-size: 11pt;
}

#sidebar.min .nav-item {
    width: 60px;
}

#sidebar.min #sendBtn span,
#sidebar.min .nav-item span {
    width: 0;
    opacity: 0;
    transition: width ease-in-out .5s, opacity ease-in-out .2s;
}

.settingbar {
    position: absolute;
    top: 0; right: -200px;
    background-color: rgba(0,158,229,1);
    width: 200px;
    transition: right ease-in-out .5s;
    z-index: 100;
}

.settingbar.open {
    right: 0;
}

.setting-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    background-color: white;
}

.settingbar h5 {
    margin-bottom: 0;
    padding-left: 1rem;
}

.setting-close {
    text-align: center;
    width: 52px;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.setting-close:hover {
    color: white;
    background-color: #009EE5;
}

.settingbar .card {
    margin: 1rem;
    background-color: white !important;
    text-align: center;
    border: 0;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.2)!important;
}

.settingbar .card-body {
    padding: 1rem .5rem;
}

.settingbar .card-text:first-child {
    font-weight: bold;
    margin-bottom: .5rem;
    font-size: 11pt !important;
}

.settingbar .card-text:last-child {
    font-size: 10pt;
}

.settingbar .nav-link {
    color: #ffffff;
}

.settingbar .nav-link:hover i,
.settingbar .nav-link:focus i,
.settingbar .nav-item.active i {
    background-color: #ffffff;
    color: #009EE5;
}


@media (max-width: 991px) {
    #sidebar .nav-item {
        width: 150px;
    }

    #sidebar #sendBtn i {
        width: 40px;
        font-size: 11pt;
    }

    #sidebar .nav-link i {
        width: 52px;
        font-size: 12pt;
    }

    #sidebar #sendBtn span {
        width: 90px;
        font-size: 8pt;
    }

    #sidebar .nav-link span {
        width: 100px;
        font-size: 10pt;
    }

    #sidebar.min .nav-item {
        width: 52px;
    }

    .settingbar .nav-link i {
        font-size: 12pt;
    }

    .settingbar .nav-link span {
        font-size: 10pt;
    }
}

/************************/
/*   CONTENT ELEMENTS   */
/************************/

#content {
    padding: 1.5rem 1.5rem  1.5rem calc(200px + 1.5rem);
    height: 100%;
    width: 100vw;
    background: white;
    transition: width ease-in-out .5s, padding-left ease-in-out .5s;
    overflow-y: auto;
}

#sidebar.min + #content {
    padding-left: calc(60px + 1.5rem) !important;
}

#listView a {
    text-decoration: none !important;
}

@media (max-width: 991px) {
    #content {
        padding-left: calc(150px + 1.5rem) !important;
    }

    #sidebar.min + #content {
        padding-left: calc(52px + 1.5rem) !important;
    }
}

#listView .group-color {
    height: 10px;
    width: 10px;
    margin: 1px;
}

/**************************/
/*   BOTTOMBAR ELEMENTS   */
/**************************/

#bottombar {
    height: 100%;
    padding: .5rem;
}

/***************************/
/*   NEWSLETTER ELEMENTS   */
/***************************/

.fileUpload.active
{
    border-color: red;
    border-style: solid;
    border-radius: 6px;
    text-align: center;
}

.fileUpload {
    border: 0.25rem dashed #a5a5c7;
    border-radius: 6px;
    text-align: center;
}

#clickUpload, .clickUpload {
    position: relative;
}

.image > img {
    max-height: 100%;
}

input[name="file"] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    border: solid transparent;
    width: 100%;
    opacity: 0;
    height: 100%;
    cursor: pointer;
}

#avatar {
    position: relative;
    width: 200px;
    height: auto;
}

#avatar img {
    padding-left: 0;
    padding-right: 0;

}

#avatar .fa-times-delete {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 15;
    background-color: rgba(255, 73, 102, 0.8);
    color: black;
    padding: 0 4px 0 4px;
    font-size: 20pt;
    transform: none;
    transition-property: opacity;
    transition-duration: 0.5s;
}

.send-request.fa-times-delete {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.text-ellipsis {
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.text-no-wrap {
    white-space: nowrap;
    overflow: hidden;
}

.font-size-10 {
    font-size: 10pt;
}

.font-size-20 {
    font-size: 20pt;
}

#newsletterGroupList,
#newsletterGroupSelected,
#newsletterContactList,
#newsletterContactSelected {
    height: 230px;
    overflow-y: auto;
}

/************************/
/*   PROFILE ELEMENTS   */
/************************/

#userProfile .form-group {
    position: relative;
}

#userProfile .unmask {
    top: 4px !important;
    right: 10px !important;
    font-size: 14pt;
}

#avatar {
    overflow: hidden;
}

/*********************/
/*   USER ELEMENTS   */
/*********************/

#userForm .form-group {
    position: relative;
}

#userForm .unmask {
    top: 4px !important;
    right: 18px !important;
    font-size: 14pt;
}

/************************/
/*   CONTACT ELEMENTS   */
/************************/

.grid-view span {
    margin-left: .5rem;
    margin-right: .5rem;
    border: 1px solid #dee2e6;
}

.grid-view i {
    cursor: pointer;
    padding: .5rem;
    font-size: 16pt;
}

.grid-display {
    display: flex;
    flex-wrap: wrap !important;
}

.grid-display > .row {
    display: none;
}

.grid-display > .grid-cell {
    display: block;
}

.grid-cell {
    display: none
}

/************************/
/*   LOADING ELEMENTS   */
/************************/

#loading {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,110,229,1) 40%, rgba(0,158,229,1) 90%);
}

#loading .line {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: #ffffff;
}

#loading .line:nth-last-child(1) {
    animation: loading .6s .1s linear infinite;
}
#loading .line:nth-last-child(2) {
    animation: loading .6s .2s linear infinite;
}
#loading .line:nth-last-child(3) {
    animation: loading .6s .3s linear infinite;
}

@keyframes loading {
    0% {transform: translate(0,0);}
    25% {transform: translate(0,7px);}
    50% {transform: translate(0,14px);}
    75% {transform: translate(0,7px);}
    100% {transform: translate(0,0);}
}