.ai-assistant-container {
    position: relative;
    background-color: var(--bs-primary);
    padding: 1.5rem;
    border-radius: var(--bs-border-radius);
    margin-bottom: 1rem;
}

.ai-avatar .avatar-circle {
    width: 70px;
    height: 70px;
    /* background: linear-gradient(135deg, var(--bs-primary) 0%, var(--panel-sidebar-primary) 100%); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--bs-white);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.ai-greeting h6 {
    color: var(--bs-white);
    font-weight: 600;
}

.modal-dialog-slideInRight {
    margin-left: auto;
    margin-right: 0;
    height: 100vh;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 500px;
}

.modal-dialog-slideInRight .modal-content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--bs-border-color);
    box-shadow: var(--bs-box-shadow-lg);
    background-color: var(--bs-white);
}

.modal-dialog-slideInRight .modal-header {
    border-bottom: none;
    background: var(--bs-body-bg) !important;
    padding: 20px;
    padding-inline-start: 30px;
    /* box-shadow: var(--bs-box-shadow); */
}

.modal-dialog-slideInRight .modal-header .modal-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--bs-dark);
}

.modal-dialog-slideInRight .modal-header .btn-close {
    font-size: 12px;
    opacity: 0.8;
}

.modal-dialog-slideInRight .modal-header .btn-close:hover {
    opacity: 1;
}

.modal-dialog-slideInRight .modal-body {
    padding: 1.5rem;
}

.ai-actions .btn {
    padding: 0.875rem 1.25rem;
    font-size: var(--bs-body-font-size);
    font-weight: 500;
    border-radius: var(--bs-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.ai-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--bs-box-shadow);
}

.ai-greeting h2 {
    font-size: 22px;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
    font-weight: 700;
}

.ai-greeting h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    font-weight: 400;
}

.ai-greeting p {
    font-size: var(--bs-body-font-size);
    line-height: 1.4;
    color: var(--bs-body-color);
}

.upload-zone {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: var(--bs-body-bg);
    border-radius: 15px;
    padding: 1rem;
    position: relative;
}

.upload-zone:hover {
    background-color: var(--section-bg);
    border-color: var(--bs-primary) !important;
}

.upload-zone_img{
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
}

.remove_image_btn{
    position: absolute !important;
    inset-inline-end: -0.5rem;
    inset-block-start: -0.5rem;
}

.list-group-item.title-option {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.list-group-item.title-option:hover {
    background-color: var(--section-bg);
    border-color: var(--bs-primary);
}

.sticky-top {
    z-index: 1020;
}

.floating-ai-button {
    position: fixed;
    inset-block-end: 0px;
    inset-inline-end: 0px;
    z-index: 1050;
}

.floating-ai-button .btn {
    width: 70px;
    height: 70px;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: var(--bs-box-shadow);
    transition: all 0.3s ease-in-out;
}

.floating-ai-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow-lg);
}

.ai-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bs-dark);
    color: var(--bs-white);
    padding: 8px 12px;
    border-radius: var(--bs-border-radius);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.floating-ai-button:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 75px;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: var(--bs-dark);
}

.aiAssistantModalLabel {
    color: white;
}
.robot-icon-add-custom-font-size{
    font-size: 1.5rem;
}

.generate-text-input-group {
    border-radius: 30px;
    border: 1px solid #DFE1E5;
    background: transparent;
    padding-block: 8px;
    padding-inline-start: 12px;
    padding-inline-end: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.generate-text-input-group .bootstrap-tagsinput {
    border: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    overflow-wrap: anywhere;
    margin-bottom: 0;
    padding: 0;
}

.generate-text-input-group .bootstrap-tagsinput input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    height: auto;
}

.generate-text-input-group button {
    position: absolute;
    inset-inline-end: 0.5rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}


#titlesList .list-group-item{
    border: none;
    background-color: transparent;
    color: var(--bs-dark);
}


/* Ai animations */
.generate_btn_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    background: transparent !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-text-animation {
    font-weight: 600;
    font-size: 14px;
    color: var(--bs-primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.btn-svg-wrapper {
    display: inline-flex;
    align-items: center;
}

.ai-text-animation-visible {
    opacity: 1;
    transform: translateX(0);
}

.generate_btn_wrapper:has(.ai-text-animation-visible)::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%
    );
    animation: whiteWave 2s linear infinite;
    pointer-events: none;
}

.bg-animate .generate_btn_wrapper:has(.ai-text-animation-visible)::after {
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
}

@keyframes whiteWave {
    0% { left: -50%; }
    100% { left: 120%; }
}

.ai-btn-animation {
   --color1: var(--bs-primary);
   --color2: var(--panel-sidebar-primary);
   --color3: var(--bs-secondary);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
}

.gradientCirc {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--color1);
  border-radius: 50%;
  animation: rotate 2s infinite linear;
  overflow: hidden;
}

.gradientCirc:before,
.gradientCirc:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
}

.gradientCirc:before {
  width: 100%;
  height: 70%;
  transform: translate3d(-40%, -40%, 0);
  background: var(--color2);
  animation: moveScale2 2s infinite;
}

.gradientCirc:after {
  width: 100%;
  height: 100%;
  background: var(--color3);
  transform: translate3d(60%, 50%, 0);
  animation: moveScale1 2s infinite;
}

@keyframes moveScale1 {
  50% { transform: translate3d(10%, 10%, 0) scale(1.2); opacity: 0.8; }
  100% { transform: translate3d(60%, 50%, 0) scale(1); }
}

@keyframes moveScale2 {
  60% { transform: translate3d(-40%, -40%, 0) scale(1.3); }
  100% { transform: translate3d(-40%, -40%, 0) scale(1); }
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.gradientRect {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    var(--color1) 0%,
    var(--color2) 30%,
    var(--color3) 50%,
    var(--color1) 100%
  );
  background-size: 200% 100%;
  animation: rectShimmer 3s infinite linear;
  overflow: hidden;
}

@keyframes rectShimmer {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}


.z-1{
    z-index: 1 !important;
}
.z-2{
    z-index: 2 !important;
}

.opacity-1{
    opacity: 1 !important;
}

.square-div{
    --size: 26px;
    width: var(--size);
    height: var(--size);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 100px;
}

.outline-wrapper {
    padding: 1px;
    background: #fff;
    position: relative;
    display: inline-block;
    width: 100%;
    transition: border-radius 0.2s ease;
}

.outline-wrapper.outline-animating {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary), var(--bs-primary));
    background-size: 200% 200%;
    animation: rotate-border 1s linear infinite;
}

.outline-wrapper.outline-animating > * {
    border: none;
    outline: none;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
}

@keyframes rotate-border {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-animate.active {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--bs-primary) 10%, white),
        color-mix(in srgb, var(--bs-secondary) 10%, white),
        color-mix(in srgb, var(--bs-primary) 10%, white)
    );
}

.bg-animate .card,
.bg-animate .card-header,
.bg-animate .card-body {
    background: transparent !important;
}

.loader-circle {
  display: inline-block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.overflow-wrap-anywhere {
    overflow-wrap: anywhere;
}
