/* custom modal  */
.modal-overlay {
   width: 100dvw;
   height: 100dvh;
   position: fixed;
   top: 0;
   left: 0;
   background-color: #00000099;
   display: flex;
   justify-content: center;
   transition: opacity 0.3s ease, visibility 0.3s ease;
   overflow: auto;
   padding-top: 50px;
   padding-bottom: 50px;
   z-index: 1002;
   opacity: 0;
   visibility: hidden;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content-wrapper {
   display: flex;
   flex-direction: column;
   background-color: var(--white);
   border-radius: 6px;
   box-shadow: var(--card-shadow);
   animation: modal-appear 0.3s ease-out;
}
.modal-content-wrapper.pulse { animation: pulse 0.3s ease; }

/* Modal Open/Close Animations */
@keyframes modal-appear { 
   from { 
      transform: translateY(0); 
      opacity: 1; 
   } to { 
      transform: translateY(0); 
      opacity: 1; 
   } 
}
@keyframes pulse { 
   0% { transform: scale(1); } 
   50% { transform: scale(1.02); } 
   100% { transform: scale(1); } 
}

/* Close Button */
.modal-close {
   position: absolute;
   top: 21px;
   right: 21px;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 30px;
   width: 30px;
   padding: 0;
   background: transparent;
   border: none;
   cursor: pointer;
   color: rgb(156 163 175);
}
.modal-close > i::before { font-weight: 900; }
.modal-close:hover{ color: var(--dark); }
.modal-close svg{
   height: 20px;
   width: 20px;
}


/* TEMP ONLY */


/* Main Sidebar */
.sidebar-content .nav-item a p{ font-weight: 500 !important; }
.sidebar-content .nav-item a p,
.sidebar-content .nav-item a span{
    font-family: var(--font);
    font-size: 0.875rem !important;
    line-height: 1.5rem;
    letter-spacing: 0.015em;
}

/* Main Top Navigation */
.quick-actions-header,
.profile-username span{
    font-family: var(--font) !important;
    font-size: 0.875rem !important; /* 16px */
    line-height: 1.25rem !important; /* 24px */
    letter-spacing: 0.015em !important;
}

.avatar-sm{
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
}

.navbar .navbar-nav .topbar-icon .nav-link,
.navbar .navbar-nav .topbar-user .profile-pic {
    border-radius: 6px !important;
}

.dropdown-menu .user-box {
    padding: 8px !important;
    gap: 7px !important;
}

.dropdown-menu .user-box > .avatar-lg {
    width: 2.5rem !important;
    height: 2.5rem !important;
}
.dropdown-menu .user-box > .avatar-lg > img {
    border-radius: 50% !important;
}
.dropdown-menu .u-text {
    width: calc(100% - 2.5rem - 7px) !important;
    padding: 0 !important;
}
.dropdown-menu .u-text > h4 {
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
}
.dropdown-menu .u-text > p {
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: var(--dark) !important;
    line-height: 14px !important;
}

.nav-item-con{ padding: 8px !important; }

.m-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;    
}


/* Initilly hide Settings Account Form */
#settingsAccountForm{
    display: none;
}

/* Modal V2 Temp File */
.modal--overlay {
    --modal-scrim-background: rgba(0, 0, 0, .48);
    --modal-background: #fff;
    width: 100dvw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;

    background: var(--modal-scrim-background, var(--modal-background));
    backdrop-filter: blur(20px);

    overflow: auto;
    z-index: 1002;
}
.modal--overlay.active { 
    opacity: 1; 
    visibility: visible; 
}


.modal--content-wrapper {
    width: clamp(200px, 80%, 800px);
    height: fit-content;
    position: relative;
    display: block;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    border-radius: 1rem;
    margin: 40px 0;
    animation: modal--appear 0.3s ease;
}

@media only screen and (max-width: 480px) {
    .modal--content-wrapper {
        width: clamp(200px, 100%, 800px);
        margin: 20px 0;
    }
}

@keyframes modal--appear { 
    from { 
        transform: translateY(0); 
        opacity: 1; 
    } to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}




.modal--content {
    position: static;
    display: block;
    padding: 76px;
}

.modal--close-con{
    position: absolute;
    display: block;
    top: 20px;
    right: 20px;
    bottom: 0px;
    z-index: 1;
}


.IconControl_centeredIcon___gj73 path{fill: hsl(0deg 0% 100% / 80%)}
.modal--close-btn{
    position: sticky;
    top: 20px;
    width: 36px;
    height: 36px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 50%;

    user-select: none;
    text-wrap: nowrap;

    background-color: rgb(51, 51, 54); 
    color: rgba(255, 255, 255, 0.8); 
}
.modal--close-btn:hover{ background-color: rgb(55, 55, 58); }
.modal--close-btn:hover .IconControl_centeredIcon___gj73 path{fill: #ffffff}
.modal--close-btn > svg{ width: 55%; height: 55%;}


.link--button{
   display: flex;
   flex-direction: row;
   align-items: center;
   flex-wrap: nowrap;
   text-wrap: nowrap;
   gap: 8px;

   border-radius: 6px;
   user-select: none;
   cursor: pointer;
   padding: 8px 16px;

   font-size: .875rem;
   line-height: 1.25rem;
   font-weight: 500;
   font-family: var(--font);
   color: var(--dark);
}
.link--button:hover{
   color: var(--dark);
   text-decoration: underline !important;
   background-color: #f4f4f572;
}
.link--button.active{
   background-color: #f4f4f5;
   text-decoration: none !important;
}


#settingChangePassModal .masked {
	-webkit-text-security: disc !important;
	text-security: disc !important;
}

