﻿/* CMS Layout Styles */
.cms-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

.cms-layout {
  display: flex;
  width: 100%;
  min-height: 500px;
  gap: 20px;
}

.cms-layout__sidebar {
  width: 20%;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cms-layout__sidebar-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cms-layout__sidebar-content h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.cms-layout__sidebar-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.cms-layout__sidebar-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-layout__sidebar-content-item {
  padding: 10px 5px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cms-layout__sidebar-content-item:hover {
  background-color: #e0e0e0;
}

.cms-layout__sidebar-content-item.active {
  background-color: #66E4EE;
  color: #000;
}

.cms-layout__main {
  width: 80%;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cms-layout__main-content {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cms-acceptance-label {
  position: absolute;
  top: -20px;
  left: calc(50% - 20px);
  color: red;
  font-size: 12px;
  font-weight: bold;
}

.cms-hover-tooltip {
  display: none;
  position: absolute;
  width: 170px;
  top: -55px;
  left: -130px;
  color: #ff6200;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Header styles */
.cms-layout__main-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.cms-layout__main-content h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

/* Save button styles */
.cms-btn-info {
  font-size: 14px;
}
.cms-btn-submit {
  font-size: 14px;
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;

}
.cms-btn-submit:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 136, 56, 0.3);
}
.cms-layout__main-content-save-btn {
  background-color: #00f7ff;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cms-layout__main-content-submit-btn {
  background-color: #00ff22;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cms-layout__main-content-save-btn:hover {
  background-color: #00e3eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.cms-layout__main-content-save-btn:active {
  transform: translateY(0);
}

.cms-layout__main-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* Input container styles */
.cms-layout__main-content-input-container {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cms-layout__main-content-input-container label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  width: 45%;
}

.cms-layout__main-content-input-container input,
.cms-layout__main-content-input-container textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  width: 100%;
  flex: 1;
  order: 2;
}

.cms-icon-dropdown-container{
  order: 2;
}

.cms-layout__main-content-key-input {
  width: 100%;
  flex: 1;
  order: 2;
}

.cms-layout__main-content-input-container input:focus,
.cms-layout__main-content-input-container textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.cms-layout__main-content-input-container input::placeholder,
.cms-layout__main-content-input-container textarea::placeholder {
  color: #999;
}

.cms-layout__main-content-input-container textarea {
  min-height: 100px;
  resize: vertical;
}

/* Image container styles */
.cms-layout__main-content-image-container {
  margin-bottom: 20px;
  width: 100%;
  flex: 1;
  order: 2;
}

.cms-layout__main-content-image-container label {
  display: block;
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Drag and drop area styles */
.cms-layout__main-content-drag-drop-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fafafa;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 15px;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cms-layout__main-content-drag-drop-area:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.cms-layout__main-content-drag-drop-area.drag-over {
  border-color: #007bff;
  background-color: #e6f3ff;
  transform: scale(1.02);
}

.cms-layout__main-content-drag-drop-area.has-image {
  border-color: #28a745;
  background-color: transparent;
}

.cms-layout__main-content-drag-drop-area.has-image:hover {
  border-color: #218838;
}

.cms-layout__main-content-drag-drop-area .drag-drop-content {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.cms-layout__main-content-drag-drop-area.has-image .drag-drop-content {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
}

.cms-layout__main-content-drag-drop-area.has-image .drag-drop-content i {
  color: white;
}

.cms-layout__main-content-drag-drop-area .drag-drop-content i {
  font-size: 34px;
  color: #999;
  margin-bottom: 15px;
  display: block;
}

.cms-layout__main-content-drag-drop-area .drag-drop-content p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

.cms-layout__main-content-drag-drop-area.has-image .drag-drop-content p {
  color: white;
}

.cms-layout__main-content-drag-drop-area .drag-drop-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cms-layout__main-content-drag-drop-area.has-image .drag-drop-overlay {
  opacity: 1;
}

.cms-layout__main-content-drag-drop-area:hover .drag-drop-overlay {
  opacity: 1;
}

/* Image preview styles */
.cms-layout__main-content-image-preview {
  margin-bottom: 15px;
  text-align: center;
  height: 300px;
}

.cms-layout__main-content-image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.seo-editor-container{
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .cms-layout {
    flex-direction: column;
    gap: 15px;
  }

  .cms-layout__sidebar {
    width: 100%;
    order: 2;
  }

  .cms-layout__main {
    width: 100%;
    order: 1;
  }
}
