/* Fixed sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  /* full viewport height */
  background: #000;
  color: #fff;
  padding: 20px;
  overflow-y: auto;
  /* Enable internal scrolling if needed */
}
/* Content area offset to avoid overlap with sidebar */
.content {
  margin-left: 250px;
  padding: 40px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.upload-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 50%;
  margin: unset;
  position: relative;
  border: 2px dashed #000;
  cursor: pointer;
}
.upload-box:hover {
  background: #f1f8ff;
}
.upload-box p {
  margin-bottom: 10px;
  color: #555;
}
.upload-box input {
  display: none;
}
.btn-webhook {
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-left: auto; /* Pushes the button to the right */
}

.btn-upload {
  display: inline-block;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  margin-top: 15px;
}
.btn-upload:hover {
  background: #2980b9;
}
.file-list {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 50%;
  margin: unset;
  margin-top: 20px;
  text-align: left;
}
.file-list h3 {
  margin-bottom: 10px;
}
.file-list ul {
  list-style: none;
  padding: 0;
}
.file-list ul li {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.file-list ul li:last-child {
  border-bottom: none;
}
.file-list ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: bold;
}
.dragging {
  background: #dfeefc !important;
}
/* Popup Styling */
/* Popup Styling */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Popup Content */
.popup-content {
  background: white;
  padding: 25px;
  width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}
/* Close Button */
.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}
/* Headings */
.popup-content h2 {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
}
/* Form Styling */
.popup-content div {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
/* Label Styling */
.popup-content label {
  flex: 1;
  font-size: 14px;
  font-weight: bold;
}
/* Input Fields (Color Picker & Textbox) */
.popup-content input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
}
.popup-content input[type="text"] {
  flex: 2;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
}
/* Apply Theme Button */
#applyTheme {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  margin-top: 10px;
}
#applyTheme:hover {
  background: #0056b3;
}

/* Web Hook */
/* Modal container - hidden by default */
.webmodal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal content box */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 10px;
}

/* Close button */
.web-close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;

  font-weight: bold;
}

.web-close-btn:hover,
.web-close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Input fields and labels */
label {
  display: block;
  margin-top: 10px;
}

input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

/* Full Page Loader */
#pageLoader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Spinner CSS */
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #000;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

/* Modal styles */
.CreateProjectmodal,
.configureWebsiteModal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 125%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.CreateProjectmodal-content,
.configure-website-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 80%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  font-family: Arial, sans-serif;
  height: 80%;
  margin-top: -25px;
}

.CreateProjectclose-btn,
.configure-website-modal-close-btn {
  color: #888;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.CreateProjectclose-btn:hover,
.configure-website-modal-btn:hover {
  color: #000;
}

.input-field {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* .editor-field {
  min-height: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 12px;
  font-size: 15px;
  background-color: #f9f9f9;
  margin-bottom: 16px;
  
} */

.save-btn {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 10px;
  transition: background-color 0.3s ease;
}
.editor-field {
  /* min-height: 300px;
  max-height: 300px; or whatever limit you prefer */
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 12px;
  font-size: 15px;
  background-color: #f9f9f9;
  margin-bottom: 16px;
  position: relative;
  height: 75%;
}

.editor-field .placeholder {
  position: absolute;
  color: #aaa;
  top: 10px;
  left: 10px;
  pointer-events: none;
  user-select: none;
  font-size: 16px;
  display: none; /* Hide by default */
}
.editor-field:empty .placeholder {
  display: block;
}

.editor-field:not(:empty) .placeholder {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
