
.section-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333;
}

.action-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-group .primary-btn {
  height: 40px;
  border-radius: 6px;
  border: none;
  background-color: #d0e7ff;
  color: #fff;
  font-size: 1rem;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.action-group .primary-btn.active {
  background-color: #3B82F6;
  cursor: pointer;
}

.background-settings {
  border-top: 1px dashed #ddd;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bg-type {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #333;
}

.bg-type label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bg-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bg-color-picker input[type="color"] {
  width: 42px;
  height: 32px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}


#generateBtn {
  width: 100%;
  height: 40px;
  font-size: 1rem;
  background-color: #d0e7ff;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: not-allowed;
  transition: background-color 0.2s;
}

#generateBtn.active {
  background-color: #3B82F6;
  cursor: pointer;
}


#postConvertBox {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

#postConvertBox .primary-btn {
  flex: 3;
  background-color: #22c55e;
  color: #fff;
  border-radius: 6px;
  border: none;
  height: 40px;
  cursor: pointer;
}

#postConvertBox .secondary-btn {
  flex: 1;
  background-color: #e5e7eb;
  color: #333;
  border-radius: 6px;
  border: none;
  height: 40px;
  cursor: pointer;
}


.preview-note {
  font-size: 0.85rem;
  color: #999;
}

.preview-box {
  position: relative;
  width: 100%;
  min-height: 260px;
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-box img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .bg-type {
    flex-direction: column;
    gap: 6px;
  }

  #postConvertBox {
    flex-direction: column;
  }

  #postConvertBox .primary-btn,
  #postConvertBox .secondary-btn {
    flex: none;
    width: 100%;
  }
}

.left-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.left-col {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.right-col {
  flex: 0 0 62%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background-color: #fff;
}


.upload-box {
  border: 2px dashed #3B82F6;
  border-radius: 8px;
  background-color: #EFF6FF;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover {
  background-color: #DBEAFE;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #2563EB;
  cursor: pointer;
}

.upload-note {
  font-size: 12px;
  color: #6B7280;
}


.primary-btn,
.secondary-btn {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn {
  background-color: #3B82F6;
  color: #fff;
}

.primary-btn:disabled {
  background-color: #d0e7ff;
  cursor: not-allowed;
}

.secondary-btn {
  background-color: #f3f4f6;
  color: #333;
}

.secondary-btn:hover {
  background-color: #e5e7eb;
}


.small-note {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}

#originalInfo {
  word-break: break-all;
}


.preview-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.preview-box {
  width: 100%;
  min-height: 280px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-box img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}


@media (max-width: 768px) {
  .left-content {
    flex-direction: column;
  }

  .left-col,
  .right-col {
    flex: 1 1 100%;
  }
}

.action-group .primary-btn:disabled {
  opacity: 0.6;  
  cursor: not-allowed;
}

.action-group .primary-btn:not(:disabled) {
  background-color: #3B82F6;
  cursor: pointer;
}

.action-group .primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-group .primary-btn:not(:disabled) {
  background-color: #3B82F6;
  cursor: pointer;
}
.action-group input[type="range"] {
  width: 100%;
  cursor: pointer;
}

#maskStrengthValue {
  font-weight: 600;
  margin-left: 6px;
}

.post-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
}

.post-action-buttons .primary-btn,
.post-action-buttons .secondary-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.post-action-buttons .primary-btn.disabled,
.post-action-buttons .primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.post-action-buttons .primary-btn:not(:disabled) {
  background-color: #3B82F6;
  color: #fff;
}

.post-action-buttons .secondary-btn {
  background-color: #f3f4f6;
  color: #333;
  border: 1px solid #ccc;
}

.post-action-buttons .secondary-btn:hover {
  background-color: #ececec;
}

.preview-box {
  position: relative; 
  border: 1px solid #ccc;
  padding: 10px;
  min-height: 200px;
}

.right-col.box-wrapper {
  position: relative;
  padding: 10px;
}

.clear-btn {
  position: absolute;
  top: 10px;           
  right: 15px;       
  background-color: #28a745;
  color: #ffffff;   
  font-weight: bold; 
  padding: 6px 14px; 
  border: none;      
  border-radius: 4px; 
  cursor: pointer;
  font-size: 13px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  transition: background-color 0.2s ease;
}

.clear-btn:hover {
  background-color: #218838; 
}
