/* -- loading annimation -- */

.loader {
    border: 8px solid var(--grey-300);
    border-top: 8px solid var(--primary-700);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -- Checkboxes -- */
input[type=checkbox] {
    accent-color: var(--primary-600);
}

/* -- Buttons -- */

.btn-text {
    background: none;
    border:none;
    color: var(--primary-700);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s all ease;
}
.btn-text-md {
    background: none;
    border:none;
    color: var(--primary-700);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s all ease;
}
.btn-text:hover,
.btn-text-md:hover {
    color: var(--primary-800);
}
.btn-primary {
    /* width: 100%; */
    background: var(--primary-700);
    color: var(--base-white);
    border: 1px solid var(--primary-700);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: 0.3s all ease;
    text-decoration: none;
}
.btn-primary.btn-cta {
    width: unset;
    margin: 16px 0px;
}
.btn-primary-sm {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 20px;
}
.btn-primary:hover {
    border-color: var(--primary-800);
    background-color: var(--primary-800);
}
.btn-primary:active {
    border-color: var(--primary-800);
    background-color: var(--primary-800);
}

.btn-info {
    width: 100%;
    background: var(--base-white);
    color: var(--grey-700);
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: 0.3s all ease;
    text-decoration: none;
}
.btn-info.btn-cta {
    width: unset;
    margin: 16px 0px;
}
.btn-info-sm {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 20px;
}
.btn-info:hover {
    background-color: var(--grey-50);
    box-shadow: var(--shadow-md);
}
.btn-info:active {
    border-color: var(--grey-200);
    background-color: var(--grey-100);
}

.btn-disabled {
    cursor: none;
    pointer-events: none;
}
.btn-primary.btn-disabled {
    background-color: var(--grey-300);
    border-color: var(--grey-300);
}



.btn-light {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 8px;

    background: var(--base-white);
    border: 1px solid var(--grey-300);
    color: var(--grey-700);

    box-shadow: var(--shadow-xs);
    border-radius: 8px;

    cursor: pointer;
    
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    transition: 0.3s all ease;
    text-decoration: none;
    position: relative;

}
.btn-light:hover {
    background-color: var(--grey-50);
    box-shadow: var(--shadow-md);
}
.btn-light:active {
    border-color: var(--grey-200);
    background-color: var(--grey-100);
}
.btn-light > .btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: var(--icon-plus);
    background-repeat: no-repeat;
    background-position: center;
}

.btn-light.disabled {
    color: var(--grey-300);
    border-color: var(--grey-300);
    cursor: none;
    pointer-events: none;
}

.btn-light.disabled > .btn-icon,
.btn-light.disabled > div
 {
    opacity: 0.5;
}
.btn-light.disabled:hover {
    background-color: var(--base-white);
    color: var(--grey-300);
}

/* .btn-light.pending::after {
    position: absolute;
    content: "Processing";
    top: 8px;
    left: -44px;
    transform: rotate(-28deg);
    color: var(--base-white);
    background-color: var(--primary-700);
    font-size: 10px;
    padding: 4px 53px;
} */

.btn-light.pending::after {
    content: "Processing";
    position: absolute;
    top: -8px;
    right: -12px;
    border-radius: 11px;
    background: var(--grey-50);
    color: var(--primary-700);
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.75px;
    padding: 2px 8px;
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}

.btn-light.complete::after {
    content: "Complete";
    position: absolute;
    top: -8px;
    right: -12px;
    border-radius: 11px;
    background: var(--grey-50);
    color: var(--primary-700);
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.75px;
    padding: 2px 8px;
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}

.btn-light.new::after {
    content: "NEW";
    position: absolute;
    top: -8px;
    right: -12px;
    border-radius: 11px;
    background: var(--grey-50);
    color: var(--primary-700);
    border: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.75px;
    padding: 2px 8px;
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}

.btn-light.pending,
.btn-light.complete {
    margin-top: 4px;
}

.btn-light.pending {
    margin-top: 4px;
}


/* -- Inputs -- */

.checkbox,
.checkbox > input,
.checkbox > label {
    cursor: pointer;
}


/* -- Input Errors / Hint -- */
.hint-text {
    display: none;
    
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    
    color: var(--error-500);

    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.hint-border {
    border: 2px solid var(--error-300)!important;
    box-shadow: var(--shadow-xs);
}


/* -- Horizontal Divider -- */


.divider {

    width: 100%;
    height: 1px;
    background: var(--grey-200);

    flex: none;
    align-self: stretch;
    flex-grow: 0;

}

.divider-dark {

    width: 100%;
    height: 0.5px;
    background: var(--grey-200);

    flex: none;
    align-self: stretch;
    flex-grow: 0;

}

.breadcrumb-back {
    display: flex;
    flex-direction: row;
    gap: 8px;
    line-height: 24px;
    padding: 4px 0 16px 0;
}
.icon-back-arrow {
    width: var(--icon-width);
    height: var(--icon-wrapper-height);
    position: relative;

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px;

    /* Flex order */
    flex: none;
    order: 0;
    flex-grow: 0;
    /* background-repeat: no-repeat;
    background-size: 12px auto;
    background-position: center;
    background-image: var(--icon-back-arrow); */
}

.badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: default;
}
.badge-success {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;

    background: var(--success-50);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.badge-attention {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;

    background: var(--attention-50);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.badge-attention-outline {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;
    background: none;
    border: 1.5px solid var(--attention-200);
    color: var(--base-white);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}
.badge-attention-outline > .badge-text {
    color: var(--attention-200);
}


.badge-primary-outline {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;
    background: var(--base-white);
    border: 1.5px solid var(--primary-600);
    color: var(--base-white);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}
.badge-primary-outline > .badge-text {
    color: var(--primary-600);
}


.badge-error {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;

    background: var(--error-50);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}
.badge-warning {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;

    background: var(--warning-50);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.badge-error {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px 2px 6px;
    gap: 4px;

    background: var(--error-50);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}
.badge-text.error {
    color: var(--error-700);
}
.badge-count {

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    gap: 4px;

    background: var(--grey-200);
    border-radius: 16px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}
.badge-text.count {
    color: var(--grey-700);
}
.badge-text.success {
    color: var(--success-700);
}
.badge-icon {
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    background-position: center;
}
.badge-icon.checkmark {
    background-image: var(--icon-checkmark);
}
.badge-icon.processing {
    background-image: var(--icon-processing);
}


.form-input-field {
    width: 200px;
    padding: 10px 14px;
    background-color: var(--base-white);
    border: 1px solid var(--grey-300);
    border-radius: 8px;
}

.input-wide {
    width: 424px;
}

.avatar > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.avatar-sub {
    width: 40px;
    height: 40px;
    background-color: var(--grey-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-25);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.8px;
}



/* Toggle switches */

.switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey-300);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: var(--base-white);
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--primary-600);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-600);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(12px);
    -ms-transform: translateX(12px);
    transform: translateX(12px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 32px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


  /* Header Components */

  .header-content a {
    text-decoration: none;
  }


/* No users */

div.no-users {
    text-align: center;
    padding: 28px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

div.no-users .empty-state {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
    /* background-color: lightcoral; */
}

div.no-users .empty-state .content {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    gap: 8px;

    width: 100%;


    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;

}

div.no-users .empty-state .content .featured-icon {
    /* Featured icon */
    width: 40px;
    height: 40px;

    background: var(--primary-50);
    
    border: 8px solid var(--grey-50);
    border-radius: 28px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    position: relative;
}

.featured-icon .icon-wrapper {
    position: absolute;
    width: 60%;
    height: 60%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.featured-icon .icon-wrapper .icon {

    width: 100%;
    height: 100%;
    background-image: var(--icon-search);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    fill: var(--primary-700);
}

.featured-icon .icon-wrapper .icon.authenticate {
    background-image: var(--icon-shield);
}

.empty-state .content .text-content {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 4px;

    width: 100%;
    /* max-width: unset; */
    margin: auto;


    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.empty-state .content .text-content .text {
    text-align: center;
    color: var(--grey-900);

    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.empty-state .content .text-content .supporting-text {
    text-align: center;
    color: var(--grey-500);

    max-width: 200px;
    margin: auto;

    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;

    white-space: pre-wrap;
}





/* Recipet */

div.receipt {
    text-align: center;
    padding: 28px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

div.receipt .confirmation {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
    /* background-color: lightcoral; */
}

div.receipt .confirmation .content {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    gap: 8px;

    width: 100%;


    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;

}

div.receipt .confirmation .content .featured-icon {
    /* Featured icon */
    width: 40px;
    height: 40px;

    background: var(--primary-50);
    
    border: 8px solid var(--grey-50);
    border-radius: 28px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    position: relative;
}

.featured-icon .icon-wrapper {
    position: absolute;
    width: 60%;
    height: 60%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.featured-icon .icon-wrapper .icon {

    width: 100%;
    height: 100%;
    background-image: var(--icon-search);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    fill: var(--primary-700);
}

.featured-icon .icon-wrapper .icon.authenticate {
    background-image: var(--icon-shield);
}

.confirmation .content .text-content {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 16px;

    width: 100%;
    /* max-width: unset; */
    margin: auto;


    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.confirmation .content .text-content .text {
    text-align: center;
    color: var(--grey-900);

    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.confirmation .content .text-content .supporting-text {
    text-align: center;
    color: var(--grey-500);

    max-width: 200px;
    margin: auto;

    /* Inside auto layout */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;

    white-space: pre-wrap;
}

.refresh-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 12px;
    width: fit-content;
    gap: 8px;
    background: var(--base-white);
    border: 1px solid var(--grey-300);
    color: var(--grey-700);
    box-shadow: var(--shadow-xs);
    border-radius: 4px;
    cursor: pointer;
    flex: none;
    margin-top: 18px;
    margin-left: 32px;
    transition: 0.3s all ease;
}

.refresh-btn:hover {
    background-color: var(--grey-50);
    box-shadow: var(--shadow-md);
}
.refresh-btn:active {
    border-color: var(--grey-200);
    background-color: var(--grey-100);
}

.inline-checkbox {
    display: flex;
    align-items: center;
}

.alert-banner {
    width: 100%;
    background-color: var(--primary-700);
    /* background: var(--primary-gradient-left-to-right); */
    /* background: var(--primary-gradient-800-600-90); */
    color: var(--base-white);
    padding: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.alert-banner > svg {
    padding-top: 2px;
}
.alert-banner > svg > path {
    stroke: var(--base-white);
}

.new-btn:after {
    content: "NEW";
    margin-left: 8px;
    border-radius: 9px;
    background: var(--grey-50);
    color: var(--primary-700);
    /* border: 1px solid var(--grey-200); */
    border: 1px solid var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.75px;
    padding: 0px 6px;
    box-shadow: var(--shadow-xs);
    height: 16px;
}

.updated-btn:after {
    content: "UPDATED";
    margin-left: 8px;
    border-radius: 9px;
    background: var(--grey-50);
    color: var(--primary-700);
    /* border: 1px solid var(--grey-200); */
    border: 1px solid var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.75px;
    padding: 0px 6px;
    box-shadow: var(--shadow-xs);
    height: 16px;
}

/* Pulse Animation for AI Icon */

#lg_star {
    transform: scale(0.97);
    animation: pulse_sm 2.5s infinite;
    animation-delay: 0.6s;
    transition: all ease;
}

#md_sm_star {
    transform: scale(1);
    animation: pulse 2.5s infinite;
    animation-delay: 0.4s;
}


#md_lg_star {
    transform: scale(1);
    animation: pulse 2.5s infinite;
    animation-delay: 0.2s;
}


#sm_star {
    transform: scale(1);
    animation: pulse 2.5s infinite;
}


@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  30% {
    transform: scale(1.01);
    opacity: 0.75;
    fill: var(--grey-500);
  }
  70% {
    transform: scale(1.01);
    opacity: 085;
    fill: white;
  }
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

@keyframes pulse_sm {
  0% {
    transform: scale(0.97);
    opacity: 0.85;
  }
  30% {
    transform: scale(0.97);
    opacity: 0.75;
    fill: var(--grey-500);
  }
  70% {
    transform: scale(0.97);
    opacity: 0.8;
    fill: white;
  }
  100% {
    transform: scale(0.97);
    opacity: 0.85;
  }
}

.ai-wrapper {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 99999999;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.ai-assist {
    cursor: pointer;
    margin-right: 12px;
}

.ai-note {
    background: var(--grey-100);
    border: 2px solid var(--primary-700);
    padding: 12px 18px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    margin-top: 4px;
    line-height: 1.6;
    display:none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),   /* deeper base shadow */
    0 2px 4px rgba(255, 255, 255, 0.05); /* subtle highlight */
}

.ai-note::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    transform: translate(100%, 0%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--primary-700);
}

.ai-note-close {
    content: "x";
    position: absolute;
    top: 0px;
    right: 8px;
    color: #ccc;
    cursor: pointer;
}

.ai-note-text {
    font-size: 14px;
    font-weight: 400
}

.ai-link {
    /* color: var(--primary-700); */
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Typing dots animation */
.typing-dots::after {
    content: '';
    display: inline-block;
    width: 2em;
    animation: dots 1s steps(4, end) infinite;
    padding-right: 10px;
  }

  @keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '. .'; }
    75% { content: '. . .'; }
    100% { content: ''; }
  }

  /* Style for final typed text */
  .typed-text {
    display: inline-block;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    font-weight: 400;
    padding-right: 10px;
    
  }