/* =============== AI LIBRARY AND GENERATE CREATIVE PAGE =====================*/
.webContent .redo-btn-span {
  display: none;
}

.transform-none {
  text-transform: none !important;
}

.bg-color-second {
  background-color: var(--color-second);
}

.generate-page-content {
  overflow: hidden;
  height: 100vh;
}

.generate-section .creative-type-options label.btn.text-start {
  height: 100%;
}

.generate-section {
  display: flex;
  flex-direction: column;
  height: 85.4vh;
  overflow: hidden;
  padding: 0;
}

.generate-section .generate-section-area {
  flex-grow: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 25px;
}

.upload-text-svg,
.svg-20 svg {
  min-width: 20px;
  width: 20px;
  height: 20px;
}

.kpi-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tooltip-inner {
  max-width: 300px;
  /* adjust width as needed */
  white-space: normal;
}

.icon-btn-download:hover,
.library-svg .hover-icons-bg.dropdown-item:hover .icon-btn-download {
  stroke: var(--color-first);
}

.make-video-dropdown .hover-icons-bg:hover {
  background: transparent;
}

.select-creative-options .dropdown-menu {
  min-width: 200px;
}

.library-info-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--gray-400, #9ca3af);
  color: var(--gray-500, #6b7280);
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: help;
}

.library-favorites-btn {
  border: 2px solid var(--color-white-same);
  border-radius: 8px;
  background: var(--color-white-same);
  color: var(--gray-700, #4b5563);
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.library-favorites-btn.active {
  border-color: var(--color-first-same);
  color: var(--color-first-same);
}

.library-select-label {
  font-size: 14px;
  color: var(--gray-700, #4b5563);
}

.library-section > .card-body {
  display: flex;
  flex-direction: column;
}

.ai-library-grid {
  margin-top: 0.75rem;
}

.ai-library-card {
  border-radius: 14px;
}

.ai-library-card-media {
  overflow: hidden;
}

.ai-library-card-media img,
.ai-library-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-library-video-processing,
.ai-library-image-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  color: #94a3b8;
  font-size: 12px;
  background: #f8fafc;
}

.ai-library-overlay-btn {
  border: none;
}

.ai-library-overlay-btn svg {
  color: #111827;
  stroke-width: 2;
}

.ai-library-fav-btn .ai-library-fav-icon {
  color: #374151;
  font-size: 15px;
  line-height: 1;
}

.ai-library-fav-btn.active .ai-library-fav-icon {
  color: #dc2626;
}

.ai-library-card-caption {
  font-size: 14px;
  color: #374151;
}

.overlay-options {
  width: 100%;
  height: 200px;
  position: relative;
}

.overlay-options img,
.overlay-options video {
  height: 100%;
  width: 100%;
}

.overlay-options .overlay-label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
}

.imgsHeartIconActive {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  min-width: auto !important;
  height: auto !important;
}

.imgsHeartIconActive.hover-icons-bg:hover {
  background: transparent;
}

.icon-btn-heart:hover {
  stroke: red;
}

.overlay-options .overlay-option-details {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: 0.3s linear;
}

.overlay-options:hover .overlay-option-details {
  opacity: 1;
}

select.select-type option:checked {
  font-weight: bold;
  position: relative;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-play-button svg,
.creative-icon svg {
  fill: var(--color-white-same)
}

select.select-type option:checked::before {
  position: absolute;
  right: 10px;
  top: 20px;
  width: 6px;
  height: 14px;
  border: solid var(--color-first);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.creative-type-options label p {
  font-size: 0.85rem
}

.creative-type-options label small {
  font-size: 0.75rem
}

.creative-type-options .btn-check:checked+.btn,
.creative-type-options .btn.active,
.creative-type-options .btn.show,
.creative-type-options .btn:first-child:active,
.creative-type-options :not(.btn-check)+.btn:active {
  background-color: var(--color-light4) !important;
  border: 1px solid var(--color-light4);
}

.creative-icon {
  width: 50px;
  height: 50px;
  background: var(--color-first-same);
}

.creative-other-type-options .btn {
  padding: 4px 7px 2px;
}

.creative-type-options.creative-other-type-options label small {
  font-size: 0.65rem;
  font-weight: 500
}

.upload-img-section input.form-control {
  height: 40px;
  font-size: 12px
}

.cover-photo-section.image-upload-box.creative-photo-box {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: initial;
  background: var(--bg-light);
}

.cover-photo-section.image-upload-box.creative-photo-box img {
  width: 20px;
  height: 20px !important;
}

.new-img-uploaded.cover-photo-section.image-upload-box.creative-photo-box img {
  width: 35px;
  height: 35px !important
}

.image-upload-box.creative-photo-box .action-icon {
  top: -5px !important;
  right: -5px;
}

.creative-photo-box.image-upload-box .action-icon svg {
  width: 15px;
  height: 15px;
  padding: 0;
}

button#imagine-dropdown-toggle {
  border: 1px solid rgba(0, 0, 0, 0.25);
}

#imagine-dropdown-toggle .dropdown-text {
  font-size: 14px;
  margin-bottom: 0
}

#imagine-dropdown-toggle.dropdown-toggle::after {
  content: ">";
  transform: rotate(90deg);
  border: 0
}

#imagine-dropdown-toggle span {
  margin-bottom: 0
}

.z-9999 {
  z-index: 9999
}

.dropdown-menu>.dropdown-item.imagine-dropdown-item:focus,
.dropdown-menu>.dropdown-item.imagine-dropdown-item:hover {
  background-color: var(--bg-first-light);
}

/*.dropdown-menu > .dropdown-item.imagine-dropdown-item svg{fill: var(--color-second);}*/
/*.dropdown-menu > .dropdown-item.imagine-dropdown-item:focus svg,
    .dropdown-menu > .dropdown-item.imagine-dropdown-item:hover svg{fill:var(--color-first);}*/
.creative-type-input::placeholder,
.creative-type-input {
  font-size: 0.8rem
}

.library-svg svg.tools-icon {
  fill: var(--bg-black);
  stroke: none
}

/* {stroke: var(--color-first);} */
.library-svg svg.tools-icon.svg-color-second {
  fill: none;
  stroke: var(--bg-black);
}

.select-creative-options {
  background: var(--bg-light);
}

/*.imagine-post{height: 400px}
    .imagine-post video.imagine-video,.imagine-post img{height: 100%}*/
.creative-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  margin: 0;
}

.creative-file-item img,
.creative-file-item video {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bg-third);
  border-radius: 4px;
  object-position: center;
  object-fit: cover;
}

html[data-bs-theme="dark"] button#imagine-dropdown-toggle .tools-icon,
html[data-bs-theme="dark"] button#imagine-dropdown-toggle .tools-icon path {
  fill: var(--color-white-same) !important;
}

html[data-bs-theme="dark"] .creative-type-options .btn-check:checked+.btn,
html[data-bs-theme="dark"] .creative-type-options .btn.active,
html[data-bs-theme="dark"] .creative-type-options .btn.show,
html[data-bs-theme="dark"] .creative-type-options .btn:first-child:active,
html[data-bs-theme="dark"] .creative-type-options :not(.btn-check)+.btn:active {
  background-color: var(--color-first) !important;
}

html[data-bs-theme="dark"] .library-svg svg.tools-icon {
  fill: var(--color-white-same);
}

html[data-bs-theme="dark"] .library-svg svg.tools-icon.svg-color-second {
  fill: none;
  stroke: var(--color-white-same);
}

html[data-bs-theme="dark"] .star-icon {
  fill: var(--color-white-same)
}

html[data-bs-theme="dark"] .cover-photo-section.image-upload-box.creative-photo-box,
html[data-bs-theme="dark"] .upload-img-section input.form-control,
html[data-bs-theme="dark"] .upload-img-section .search-btn,
html[data-bs-theme="dark"] .select-creative-options button#imagine-dropdown-toggle {
  background: #0d0d0d !important;
}

html[data-bs-theme="dark"] .cover-photo-section.image-upload-box.creative-photo-box img {
  filter: invert(100%);
}

html[data-bs-theme="dark"] .new-img-uploaded.cover-photo-section.image-upload-box.creative-photo-box img {
  filter: invert(0%);
}

html[data-bs-theme="dark"] .video-options .hover-icons-bg:hover svg {
  stroke: var(--color-first);
}

/* =============== POST PAGE =====================*/
.imagine-page-chatbox {
  margin: 0 auto 60px auto;
  padding: 0 0 0 80px;
  z-index: 9;
}

.imagine-page {
  position: relative;
}

.imagine-page:after {
  content: '';
  position: sticky;
  display: block;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(0deg, var(--bg-black), transparent);
  z-index: 1;
  opacity: 0.5;
}

.masonry {
  column-count: 2;
  column-gap: 12px;
}

@media (min-width: 768px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .masonry {
    column-count: 4;
  }
}

@media (min-width: 1199px) {
  .masonry {
    column-count: 5;
  }
}

.brick {
  cursor: pointer;
  text-align: left;
  position: relative;
}

.brick .brick-details {
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 0;
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  counter-increment: brick-counter;
}

.brick-image {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  border: none;
}

.brick-title {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  color: var(--color-third);
  background-color: var(--white);
  font-size: 14px !important
}

.image-buttons {
  cursor: pointer;
  text-align: left;
  position: absolute;
  top: auto;
  left: auto;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 30px 10px 10px 10px;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  z-index: 2;
  transition: 0.3s linear;
}

.brick:hover .image-buttons {
  opacity: 1
}

.imgsHeartIcon svg.svg-color-second path {
  stroke: var(--color-second);
  stroke-width: 2px;
  fill: none;
  transition: all 0.5s;
}

.imgsHeartIcon svg path {
  stroke: var(--gray-300);
  stroke-width: 2px;
  fill: none;
  transition: all 0.5s;
}

.imgsHeartIcon.active svg path,
.imgsHeartIcon.active svg.svg-color-second path {
  stroke: none;
  fill: red;
}

.hover-icons,
.hover-icons-bg {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 6px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.hover-icons {
  border: 1px solid rgba(225, 225, 225, 0.5);
  background-color: rgba(0, 0, 0, 0.4);
}

.imagine-page .hover-icons {
  opacity: 0.7;
}

.imagine-page .hover-icons.active,
.imagine-page .hover-icons:hover {
  opacity: 1;
}

.hover-icons svg,
.hover-icons-bg svg {
  min-width: 24px;
  width: 24px;
  height: 24px;
}

.imagine-page .hover-icons svg {
  min-width: 16px;
  width: 16px;
  height: 16px;
}

.hover-icons-bg:hover {
  background-color: var(--border-light);
  background-color: var(--color-white-same)
}

.dropdown-menu li:hover .hover-icons-bg {
  color: var(--color-white-same);
  background-color: transparent;
}

.dropdown-menu li:hover .hover-icons-bg svg path {
  fill: var(--color-white-same) !important;
}

.imagine-post {
  position: relative;
  transition: all 0.5s
}

.imagine-post-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  margin: 0;
}

.imagine-post .imagine-post-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  margin: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

.imagine-post .hover-icons {
  min-width: 46px;
  height: 46px;
}

.post-play-section {
  opacity: 0;
  transition: all 0.5s
}

.imagine-post:hover .post-play-section {
  opacity: 1;
}

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

.icon-18px {
  min-width: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

/*aspect Ratio*/
.aspectRatio,
.gap-2px {
  gap: 2px;
}

.aspectRatio .aspectRatioBtn {
  position: relative;
}

.aspectRatio .aspectRatioBtn.active {
  background-color: var(--color-light4);
}

.aspectRatio .aspectRatioBtn.active svg path {
  fill: var(--color-first-same);
}

.aspectRatio .aspectRatioBtn .aspectRatioText {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  transition: all 0.5s;
  z-index: 1;
  opacity: 0;
}

.aspectRatio .aspectRatioBtn:hover .aspectRatioText {
  opacity: 1;
}

/*aspect Ratio end*/

/*favorites imgs section*/
.favorites-imgs-area {
  position: relative;
  width: 75px;
  height: 65px;
  transition: all 0.5s;
}

.favorites-img {
  position: absolute;
  top: 0;
  width: 56px;
  height: 56px;
  transition: all 0.5s;
}

.favorites-img.favorites-img-1 {
  left: 4px;
  z-index: 1;
  rotate: -10deg;
}

.favorites-img.favorites-img-2 {
  left: 8px;
  z-index: 2;
}

.favorites-img.favorites-img-3 {
  left: 12px;
  z-index: 3;
  rotate: 10deg;
}

.favorites-img img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
}

.favorites-imgs-area:hover {
  scale: 1.05
}

.favorites-imgs-area:hover .favorites-img.favorites-img-1 {
  rotate: -20deg;
}

.favorites-imgs-area:hover .favorites-img.favorites-img-3 {
  rotate: 20deg;
}

/*favorites imgs section end*/

.h-24px {
  height: 24px !important;
}

.resize-none {
  resize: none !important;
}

/*make video section*/
#makeVideoTextarea {
  font-weight: 400;
  resize: none;
  overflow-y: hidden;
  min-height: 1.5em;
  max-height: calc(1.5em * 4);
  height: 24px;
  line-height: 1.5em;
  box-sizing: border-box;
}

.make-video-dropdown span {
  transition: opacity 0.3s ease;
}

.make-video-section.active {
  background-color: var(--color-second);
}

.make-video-btn:disabled {
  opacity: 1 !important;
}

.w-max-content {
  width: max-content;
}

/*make video section end*/
.imagine-video-container {
  overflow: hidden;
}

.imagine-video {
  width: 100%;
  display: block;
}

.imagine-video-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-white-same);
}

.imagine-video-img {
  background-color: rgba(0, 0, 0, 0.4);
}

.imagine-video-img .hover-icons {
  background-color: transparent;
  border-color: transparent;
}

.imagine-video-img .hover-icons.active {
  background: var(--color-gradient1);
}

.btn-28px {
  min-width: 28px;
  width: 28px;
  height: 28px;
  min-height: 28px
}

.imagine-text-wrapper {
  overflow-x: hidden;
  overflow-y: auto !important;
  max-height: 120px;
  scrollbar-width: thin;
  border-radius: 50px;
}

.imagine-text-wrapper.active {
  border-radius: 16px;
}

.imagine-carousel.owl-theme .owl-nav {
  top: 45%;
  width: 100%
}

.imagine-carousel.owl-theme .owl-nav button.owl-prev {
  left: -60px;
  right: auto;
}

.imagine-carousel.owl-theme .owl-nav button.owl-next {
  right: -50px;
  left: auto;
}

.imagine-carousel.owl-carousel .owl-nav button.owl-next,
.imagine-carousel.owl-carousel .owl-nav button.owl-prev {
  position: absolute;
}

.edit-creative-image .imagine-post .brick-image {
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.edit-creative-video .imagine-post .brick-image,
.edit-creative-video .imagine-post .imagine-video {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.stylePresets-a {
  color: var(--color-second) !important;
}

.stylePresets-a.collapsed svg {
  transform: rotate(180deg);
}

.bg-first-light {
  border-color: var(--color-first);
  background-color: var(--bg-first-light);
}

.bg-color-first {
  background-color: var(--color-first);
}

/*========== @media screen =================================*/
@media screen and (max-width: 1024px) {
  .favorites-imgs-section {
    left: 90px;
  }

  .imagine-carousel.owl-theme .owl-nav button.owl-prev {
    left: -45px;
  }

  .imagine-carousel.owl-theme .owl-nav button.owl-next {
    right: -25px;
  }
}

@media screen and (max-width: 991px) {
  .imagine-page-chatbox {
    padding: 0 20px;
  }
}

@media screen and (max-width: 767px) {
  .imagine-page-chatbox {
    padding: 0 8px;
  }

  .post-play-section {
    opacity: 1;
  }

  .imagine-carousel.owl-theme .owl-nav button.owl-prev {
    left: -25px;
  }

  .imagine-carousel.owl-theme .owl-nav button.owl-next {
    right: -10px;
  }

  .edit-creative-image .imagine-post .brick-image {
    height: 220px;
  }
}

@media only screen and (max-width: 767px) {
  .upload-img-section {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .webContent .upload-text {
    font-size: 12px;
  }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
  .generate-page-content {
    overflow: hidden;
    height: 86.75vh;
  }

  .generate-section {
    height: 87vh;
  }
}

@media screen and (max-width: 576px) {
  .generate-page-content {
    overflow: hidden;
    height: 88vh;
  }

  .webContent .small-text-sm {
    font-size: 11px !important;
  }
}

/*========== @media screen end =================================*/
