#aipstx_meta_box .edit-post-meta-boxes-area .postbox .handle-order-higher,
.edit-post-meta-boxes-area .postbox .handle-order-lower,
.accordion-section-title:after,
.handlediv,
.item-edit,
.postbox .handlediv.button-link,
.toggle-indicator {
  color: #fff;
}

#aipstx_meta_box .postbox .handle-order-higher[aria-disabled=true],
.postbox .handle-order-lower[aria-disabled=true] {

  color: #bfbfbf;
}

.left-group .button-primary-disabled, .left-group .button-primary.disabled, .left-group .button-primary:disabled, .left-group .button-primary[disabled] {
    background-color: #6d13e2!important;
    color: white!important;
    opacity: 0.5!important;
}

select option:disabled {
    background-color: #f0f0f0;
    color: #a0a0a0;
    font-style: italic;
}

#aipstx_meta_box p {
  color: #b79df9;
  font-size: 12px;
  margin: 0!important;
}

.pv_keyword_actions {
  display: flex;
  align-items: center;
}

.pv_images_container img {
  width: 256px !important;
  height: 256px !important;
  object-fit: cover;
}

#aipstx_meta_box {
  border: 1px solid #7a5195;
  border-radius: 7px;
  background-color: #f8f3ff;
  font-family: 'Poppins', sans-serif;
}

.left-group {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
}

.right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.left-group,
.right-group {
  margin: 10px 30px 20px 30px;
  width: 100%;
}

.left-group label,
.right-group label {
  font-size: 14px;
  font-weight: 600;
  margin: 0px 0px 10px 0px;
  padding: 9px 0 4px;
  line-height: 1.3;
  color: #6a40b6;
}

#aipstx_meta_box .postbox-header {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 10px;
  background: linear-gradient(135deg, #3d1368 0%, #6d13e2 100%);
}

#aipstx_meta_box .button {
  background: linear-gradient(135deg, #6d13e2 0%, #3d1368 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 7px;
  box-shadow: 0 0 3px #6d13e2;
  transition: all 0.5s ease, opacity 0.5s ease;
  opacity: 1;
  height: 60px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

#aipstx_meta_box .button:hover {
  background: linear-gradient(135deg, #6d13e2 0%, #3d1368 100%);
  box-shadow: 0 0 5px #6d13e2;
  transform: translateY(-2px);
  opacity: 0.9;
}

@keyframes blinkBoxShadow {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0px 0px 35px 2px #7a39f6;
  }
}

.improve-button-metabox {
margin-bottom: 10px;
animation: blinkBoxShadow 2s linear infinite;
background: linear-gradient(135deg, #6d13e2 0%, #3d1368 100%);
color: white;
border: none;
padding: 10px 15px;
border-radius: 7px;
box-shadow: 0 0 5px #6d13e2;
transition: all 0.5s ease, opacity 0.5s ease;
opacity: 1;
height: 60px;
font-size: 14px;
font-weight: 500;
width: 100%;
}

.improve-button-metabox:hover {
  box-shadow: 0 0 5px #6d13e2;
  transform: translateY(-2px);
  opacity: 0.9;
  cursor:pointer;
}

#aipstx_meta_box .button-primary {
  box-shadow: 0 2px 4px 0 rgba(195, 74, 255, 0.4);
  height: 100px;
  font-size: 16px;
  font-weight: 600;
}

.pv_prompt_actions {
  gap: 20px;
  display: flex;
  width: 100%;
}


.prompt-container {
  display: flex;
  margin-right: 10px;
  flex-direction: row;
}

.prompt-area {
  margin-top: 30px;
  flex-direction: column;
  display: flex;
}

#postpix_image_count {
  width: auto;
  margin-right: 10px;
  width: 100%;
}

.disabled-select, .disabled-option {
    background-color: #e0e0e0;
    color: #a0a0a0;
}

#aipstx_meta_box input[type="text"] {
  padding: 10px;
  width: 155px;
  margin-bottom: 10px;
  border: 2px solid #6d13e2;
  border-radius: 7px;
  box-sizing: border-box;
  background-color: #f7efff;
  color: #951ced;
  font-weight: 500;
}

#aipstx_meta_box select {
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  border: 2px solid #6d13e2;
  border-radius: 7px;
  box-sizing: border-box;
  background-color: #f4e9ff;
  font-weight: 500;
}

#pv_prompt {
  padding: 10px;
  width: 100%;
  height: 325px;
  margin-bottom: 10px;
  border: 2px solid #6d13e2;
  border-radius: 7px;
  box-sizing: border-box;
  background-color: #f4e9ff;
  color: #951ced;
  font-weight: 500;
  resize: vertical;
  font-size: 15px;
}

#negative_prompt {
  padding: 10px;
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  border: 2px solid #6d13e2;
  border-radius: 7px;
  box-sizing: border-box;
  background-color: #f4e9ff;
  color: #951ced;
  font-weight: 500;
  resize: vertical;
  font-size: 15px;
}

#aipstx_meta_box .inside {
  padding: 15px;
  margin: 10px;
}

#aipstx_meta_box .top {
  display: flex;
  justify-content: center;
}

#pv_images_container {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  margin: 20px;
  border: 2px dashed #6d13e2;
  background-color: #f8f3ff;
  border-radius: 7px;
  column-gap: 50px;
  row-gap: 20px;
  color: #6d13e2;	
  overflow: hidden;
}

.pv_image_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: #f2e4ff;
  border-radius: 7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 15px;
}

.creationloadingImage {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#aipstx_create_image {
  margin-top: 10px;
}

.pv_image_preview {
  max-width: 512px!important;
  border-radius: 7px;
  margin-bottom: 7px;
}

.add-to-post-btn,
.set-featured-image-btn {
  width: 100%;
  padding: 8px 12px;
  margin-top: 5px;
  border: none;
  background: linear-gradient(135deg, #6d13e2 0%, #3d1368 100%);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.add-to-post-btn:hover,
.set-featured-image-btn:hover {
  background: linear-gradient(135deg, #6d13e2 0%, #3d1368 100%);
  opacity: 0.9;
}

handle-order-higher .handle-order-lower .order-lower-indicator {
  color: #fff;
}

.save-to-library-btn {
  position: absolute;
  padding: 10px 15px 10px 15px;
  z-index: 10;
  margin: -8px -520px 0px 0px;
  border: none;
  background: linear-gradient(135deg, #2ee22b 0%, #136814 100%);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.5s ease, max-width 0.5s ease;
  overflow: hidden;
  max-width: 43px;
  white-space: nowrap;
}

.save-to-pc-btn {
  position: absolute;
  padding: 10px 15px 10px 15px;
  z-index: 10;
  margin: 36px -520px 0px 0px;
  border: none;
  background: linear-gradient(135deg, #2b42e2 0%, #261368 100%);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.5s ease, max-width 0.5s ease;
  overflow: hidden;
  max-width: 43px;
  white-space: nowrap;
}

.save-to-pc-btn:hover {
  max-width: 140px;
}

.save-to-library-btn:hover {
  max-width: 140px;
}

.save-to-pc-btn:hover .button-text,
.save-to-library-btn:hover .button-text {
  display: inline;
  opacity: 1;
  transition-delay: 0s;
  transition: opacity 0.1s ease;
}

.save-to-pc-btn .button-text,
.save-to-library-btn .button-text {
  transition: opacity 0.2s ease;
}

.button-text {
  color: white;
  margin-left: 5px;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.button-disabled {
  color: #757575!important;
  border-color: #dcdcde!important;
  border: 1px solid #c0c0c0;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .pv_image_container {
    flex: 0 1 100%;
  }

  .pv_prompt_actions {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .negative_prompt_actions {
    flex-direction: column;
    margin-bottom: 20px;
  }

  #pv_prompt {
    margin-right: 0;
  }

  #negative_prompt {
    margin-right: 0;
  }
}

.postpix-alert {
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  position: fixed;
  bottom: 40px;
  left: 20px;
  z-index: 9999;
  display: none;
  max-width: 300px;
  text-align: center;
}

.postpix-alert-success {
  padding: 15px;
  background-color: #4CAF50;
  color: #ffffff;
  border-radius: 7px;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
}

.postpix-alert-error {
  padding: 15px;
  background-color: #ed1c2f;
  color: #ffffff;
  border-radius: 7px;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
}



.option-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.groups-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: flex-start; 
  gap: 20px; 
  width: 100%;
}

.option-group label {
  margin-bottom: 5px;
}

.option-group select {
   width: auto;
}


.option-group.number-img {
  margin-top: 10px;
}

.style-options-container {
  display: flex; /* Flexbox'u etkinleştir */
  flex-wrap: wrap; /* Çocuklar sığmadığında yeni satıra geçsinler */
  gap: 10px; 
  border: 2px dashed #7337f7;
  justify-content: space-between; /* İçerikler arası boşluk */
  padding: 20px;
  margin-top: 20px;
  width: auto;
  border-radius: 7px;
}

.style-options-header span {
  font-size: 15px;
  color: #6a40b67a;
  font-weight: 700;
}

.prompt-container label {
  font-size: 15px;
}

.style-options-header {
  width: 100%; /* Başlık genişliğini tam olarak ayarlayın */
}


.style-options {
    display: flex; /* Flexbox'u etkinleştir */
    flex-direction: column; /* İçerikleri dikey hale getir */
    width: calc(50% - 10px); /* %50 genişlik ver ve gap'i çıkar */
}

.style-column {
  display: flex;
  flex-direction: column;
  width: 48%;
}

.success-notification {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #4CAF50;
  color: white;
  padding: 30px;
  border-radius: 7px;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

.notification {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  border-radius: 7px;
  color: white;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

.notification.success {
  background-color: #4CAF50;
}

.notification.error {
  background-color: #f44336;
  padding: 30px;
}


@keyframes blink {

  0%,
  100% {
    text-shadow: none;
  }

  50% {
    text-shadow: 0 0 10px #6d13e2;
  }
}

#improve-section var {
    margin-left: 7px;
    border-radius: 30px;
    background-color: #fff;
    padding: 3px 5px;
    font-weight: 500;
    font-size: 11px;
    line-height: 15px;
    font-style: normal;
    color: #7337f7;
}

#improve-section {
    width: 100%;
    text-align: center;
}

.upgrade-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 101%;
  height: 100%;
  background: #6d13e200;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-link-big {
  font-size: 20px;
  font-weight: 600;
  color: #7337f7 !important;
  animation: blink 1.5s linear infinite;
}



@media (max-width: 1200px) { 
  .option-group {
  flex-basis: calc(50% - 10px);
  max-width: calc(50% - 60px);
  }

  #pv_prompt {
    width: 100%;
}
  #negative_prompt {
    width: 100%;
  }
 
.pv_prompt_actions {
    display: grid;
}

.negative_prompt_actions {
    display: grid;
}
}

@media (max-width: 768px) {

    .style-options {
        width: 100%; /* Mobil ekranlarda tam genişlik kullan */
    }

    .option-group {
    flex-basis: 100%;
    max-width: 100%;
  }


    .left-group,
    .right-group {
        flex-direction: column;
        margin: 0 10px;
    }

    #aipstx_meta_box .top {
        flex-direction: column;
    }

    .prompt-container,
    .options-container,
    .resolution-group {
        width: 100%;
    }

    #pv_prompt {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

      #negative_prompt {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .style-options-container {
        max-width: 100%;
        padding: 10px;
    }

    .style-column {
        width: 100%;
    }

    #aipstx_meta_box .button,
    #aipstx_create_image {
        width: 100%;
        margin-top: 10px;
        height: auto;
        padding: 10px 15px;
    }

    .upgrade-link {
        margin: 10px 0;
    }

    .upgrade-link-big {
        font-size: 16px;
    }

    .style-options input[type="checkbox"] + label {
        margin-left: 25px; /* Adjust as needed */
    }
}

/* Hata bildirim kutusu için CSS */
.error-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  animation-name: fadeIn;
  animation-duration: 0.4s
}

.error-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 450px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: slideIn;
  animation-duration: 0.5s;
}

.error-modal-content h2 {
    color: #d84643;
    text-align: center;
    margin-bottom: 15px!important;
    font-weight: 700!important;
    font-size: 20px!important;
}

.error-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.error-modal-close:hover,
.error-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes slideIn {
  from {top: -300px; opacity: 0} 
  to {top: 15%; opacity: 1}
}

.error-modal-content i {
    margin-bottom: 10px;
    display: block;
    text-align: center;
    color: #d84643!important;
    font-size: 60px!important;
    margin-left: 25px;
}

p#error-message {
    color: #333; 
    font-size: 16px; 
    text-align: center; 
    margin-top: 10px;
}

/* LOADING */

.aipstx-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 400px;
  perspective: 780px;
}

.aipstx-loader-text {
  font-size: 30px;
  font-weight: 700;
  color: #6729b4;
  z-index: 10;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.aipstx-load-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
}

.aipstx-load-inner.load-one {
  left: 0%;
  top: 0%;
  border-bottom: 12px solid #5c5edc;
  animation: rotate1 1.15s linear infinite;
}

.aipstx-load-inner.load-two {
  right: 0%;
  top: 0%;
  border-right: 12px solid #9147ff;
  animation: rotate2 1.15s 0.1s linear infinite;
}

.aipstx-load-inner.load-three {
  right: 0%;
  bottom: 0%;
  border-top: 12px solid #3b82f6;
  animation: rotate3 1.15s 0.15s linear infinite;
}

@keyframes rotate1 {
  0% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg);
  }
}
@keyframes rotate2 {
  0% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg);
  }
}
@keyframes rotate3 {
  0% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(360deg);
  }
}


.prompt-loader {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-sizing: border-box;
  border-top: 4px solid #7328ec;
  border-left: 4px solid #7328ec;
  border-right: 8px solid #ff00;
  animation: loader .7s infinite linear;
  margin: 8px 2px 0px 10px;
}

@keyframes loader {
  to {
    transform: rotate(360deg);
  }
}