:root {
    --darkBlack: #000000;
    --black: #2A2A2A;
    --darkShadow: #3e3e3e;
    --boulder: #686868;
    --alto: #D0D0D0;
    --athens: #f6f6f6;
    --white: #FFFFFF;
    --red: #F55D7B;
    --blue: #0ad3ff;
    --iceBlue: #cef6ff;
    --green: #5de380;
    --gold: #f6ae2d;
}
* {
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}

.bg-dark {
    background-color: var(--black)!important;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
}

a {
    color: var(--alto);
}

a:hover {
    color: var(--boulder);
}

.navbar {
    align-content: center;
    /*max-height: 54px;*/
    padding-left: 10px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.footer {
    bottom: 0;
    width: 100%;
    height: auto;
    background-color: var(--alto);
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--boulder);
    position: fixed;
    font-size: x-small;
    text-align: center;
}

.tutorial {
    position: absolute;
    margin: auto;
    width: 300px;
    border: 1px solid;
    background-color: var(--white);
}

.bi-box-arrow-up-right::before {
    content: "\f1c5";
    position: relative;
    right: -5px;
}

.nav-item:hover {
    cursor: pointer;
}

.tutNext {
    text-align: right;
    display: block;
}

.logo {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    background-image: url("/media/Logo_Square_K.png");
}

.circle {
    background-color: var(--alto);
    border-radius: 50%;
    height: 30px;
    text-align: center;
    width: 30px;
}

.initials {
    font-size: 15px;
    color: var(--white);
    line-height: 1;
    position: relative;
    top: 4px;
}

.btn-outline-danger {
    color: var(--red);
    border-color: var(--red);
}

.btn-outline-danger:hover {
    background-color: var(--red);
    color: var(--white);
}

.form-check-input:checked {
    background-color: var(--boulder);
    border-color: var(--boulder);
}

.form-check-input {
    background-color: var(--white);
    border-color: var(--boulder);
}

.form-check-input:focus {
    background-color: var(--white);
    border-color: var(--black);
}

.form-check-input:checked,
focus {
    background-color: var(--boulder);
    border-color: var(--black);
}

.dropdown-item:active {
    background-color: var(--boulder);
}
.dropdown-item.active {
    background-color: var(--boulder);
}
.popover-header {
    display: flex;
    justify-content: space-between;
}

.popover-header>.btn-close {
    width: 0.5em;
    height: 0.5em;
}

.toast {
    width: 340px!important;
}
.invite-link-valid{
    cursor: pointer;
}
.invite-link-valid:hover{
    color: var(--boulder);
}
.invite-invalid{
    cursor: auto;
}
#mailMultiSelect{
    flex-wrap: wrap;
}
.invite-mail-record{
    background-color: var(--boulder);
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
    color: var(--white);
}
.invite-mail-record>b{
    cursor: pointer;
}
#responseElement{
    background-color: var(--athens);
    padding: 5px;
    border-radius: 3px;
    position: relative;
    top: -4px;
    left: -4px;
    width: 102%;
    box-shadow: rgb(0 0 0 / 10%) 0px 10px 15px -3px, rgb(0 0 0 / 5%) 0px 4px 6px -2px;
    border: 1px solid var(--alto);
}
#responseElement>p{
    padding-left: 5px;
    margin: 3px;
}
#responseElement>p:hover{
    background-color: var(--boulder);
    color:var(--white);
}

.antDealSearchResults{
    background-color: var(--white);
    position: absolute;
    border: 1px solid var(--alto);
    top: 100%;
    width: 80%;
    color: var(--black);
    border-radius: 4px;
    padding-left: 0px;
    max-height: 170px;
    overflow-y: auto;
    overflow-x: auto;
    z-index: 10;
    box-shadow: rgb(0 0 0 / 10%) 0px 10px 15px -3px, rgb(0 0 0 / 5%) 0px 4px 6px -2px;
    display: none;

}
#deal_select:focus-within + .antDealSearchResults,
.antDealSearchResults:hover {
    display: block;
} 
.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}
.input-wrapper>label {
    font-size: 85%;
    font-weight: bold;
}
.input-wrapper.loading::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 60%;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.antDealSearchResults>li{
    padding: 4px;
    padding-left: 10%;
    width: calc(100% - 2px);
    cursor: pointer;
}
.antDealSearchResults>li:has(a){
    cursor: auto;
}
.antDealSearchResults>li>a{
    color: var(--darkShadow);
    cursor: pointer;
}
.antDealSearchResults>li>a:hover{
    color: var(--alto);
}
.antDealSearchResults>li:hover{
    background-color: var(--alto);
}
.antDealSearchResults>li:hover:has(a){
    background-color: var(--white);
}
.antSearchSpinner {
    display: flex;
    background-color: var(--white);
    border-radius: 4px;
    width: 316px;
}
.antSearchSpinner>.lds-ring {
    display: none;
    top: 0px;
    right: 16px;
}
.antSearchSpinner>input, .antSearchSpinner>input:focus, .antSearchSpinner>input:focus-visible, .antSearchSpinner>input:hover, .antSearchSpinner>input:active {
    width: 290px!important;
    box-shadow: none!important;
    border: none!important;
    outline: none!important;
}

#overlayWindow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Modal window */
.overlayModal-content {
    background: white;
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0.80);

    /* text-align: center; */
    /* position: relative; */
}

/* Close button */
.overlay-close-btn {
    position: absolute;
    top: 50px;
    right: 20px;
    background: none;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-container {
    position: relative;
    background-color: var(--white);
    top: 20%;
    margin: 8px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cart-header {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.cart-icon {
    margin-right: 8px;
}
.cart-empty {
    color: #9CA3AF;
    text-align: center;
}
.cart-checkout:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
}

.antNextSpinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.welcome-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: sans-serif;
  }
  .form-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  .form-btn {
    padding: 10px;
    font-size: 16px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  .form-message {
    font-size: 14px;
    color: gray;
  }
  .btn-loading {
    padding-right: 40px;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
/* @keyframes spin {
    to {
        transform: rotate(360deg);
    }
} */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/*DARK MODE*/

@media (prefers-color-scheme: dark) {
    body {
        color: var(--athens);
        background: var(--darkBlack);
    }
    .footer {
        background-color: var(--black)!important;
        color: var(--alto)!important;
    }
    .footer>div>span {
        color: var(--alto)!important;
    }
    .logo {
        background-image: url("/media/Logo_Square_f.png");
    }
    .bg-dark {
        background-color: var(--black)!important;
    }
    .modal-content {
        background-color: var(--darkShadow);
    }
    .modal-header {
        background-color: var(--black);
        border: none;
    }
    .modal-footer {
        background-color: var(--black);
        border: none;
    }
    .btn-outline-dark {
        color: var(--athens);
        border-color: var(--athens);
    }
    .btn-outline-dark:hover {
        background-color: var(--black)
    }
    .org-chart-node {
        color: var(--black);
    }
    .bg-light {
        background-color: var(--darkShadow)!important;
    }
    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    .toast {
        background-color: var(--darkShadow);
    }
    .toast-header {
        background-color: var(--black);
        color: var(--athens);
    }
    .popover-header {
        background-color: var(--black);
        color: var(--athens);
    }
    .popover-body {
        background-color: var(--darkShadow);
        color: var(--athens);
    }
    .popover {
        background-color: var(--black);
        color: var(--athens);
    }
    .dropdown-menu {
        background-color: var(--darkShadow);
    }
    .dropdown-item {
        color: var(--athens);
    }
    .dropdown-item:focus,
    .dropdown-item:hover {
        color: var(--black);
        background-color: var(--alto);
    }
    #backlogSearch>input {
        border-color: var(--alto);
    }
    #responseElement{
        background-color: var(--darkBlack);
    }
}