/* General body styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e9e9e9;
}
button:focus {
  outline: none;
}


.header {
  display: flex;
  position: sticky;
  top: 0px;
  z-index: 9999;
  padding: 15px;
  justify-content: space-between;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  width: 1200px;
  padding: 0px 10px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



 .prohibited-t,
  .prohibited-d {
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: #ffecec;
    border: 1px solid #ff5c5c;
    color: #b30000;
    display: none;
  }

  .prohibited-t.valid,
  .prohibited-d.valid {
    background-color: #e8fce8;
    border: 1px solid #2ecc71;
    color: #2e7d32;
    display: block;
  }

  .prohibited-t.invalid,
  .prohibited-d.invalid {
    display: block;
  }



.toggle-container {
  display: flex;
  background: aliceblue;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
  position: relative;
}

.toggle-btn {
  flex: 1;
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: 30px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.toggle-btn.active {
  color: white;
}

.toggle-highlight {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 50%;
  background: darkcyan;
  border-radius: 30px;
  transition: left 0.3s ease;
  z-index: 0;
}

.bars {
  display: flex;
  max-width: 1200px;
  margin: 10px auto;
  padding: 10px 20px;
  justify-content: space-between;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.tabs {
  display: flex;
  gap: 20px;
}

.tab {
  padding: 8px 20px;
  cursor: pointer;
  background: transparent;
  margin-right: 5px;
}

.tab.active {
  background: transparent;
  font-weight: bold;
  color: darkcyan;
  /* Text color */
  position: relative;
  /* For the underline */
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  /* Adjust position */
  left: 10%;
  /* Adjust to center */
  width: 80%;
  /* Adjust width */
  height: 2px;
  /* Thickness of underline */
  background-color: darkcyan;
  /* Color of underline */
  border-radius: 2px;
  /* Rounded corners */
}

/* Smooth fade and slide effect for tab content */
.tab-content {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.tab-content.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}


.tab-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Remove spinner/arrows from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Sidebar Styles */
.guide-sidebar {
  position: fixed;
  top: 0;
  left: -300px; /* Hidden by default */
  width: 300px;
  height: 100vh;
  background: white;
  color: #555;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 1000;
}

/* Show sidebar */
.guide-sidebar.active {
  left: 0;
}

li {
  margin-top: 7px;
  font-size: 14px;
}
/* Close button */
.close-guide {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

/* Form Header with Guide Button */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Default Button */
/* Default Button */
.open-guide {
  background: darkcyan;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.1s ease-in-out; /* Quick color change */
}

/* Turn Red Instantly When Active */
.open-guide.active {
  background: #dc3545 !important; /* Red */
}



.open-guide:hover {
  background: rgba(0, 139, 139, 0.842);
}

/* Guide Sidebar */
.guide-sidebar {
  position: fixed;
  top: 0;
  left: -320px; /* Hidden by default */
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 1000;
}

.guide-sidebar.active {
  left: 0;
}


.close-guide {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

/* Popup background container */


.popup {
  position: fixed;
  /* Fix the popup at the top of the screen */
  top: 0;
  /* Position it at the top */
  left: 50%;
  /* Center horizontally */
  transform: translateX(-50%);
  /* Adjust to center it properly */
  z-index: 9999;
  /* Ensure it appears above all other elements */
  display: flex;
  /* Allows stacking of multiple notifications */
  flex-direction: column;
  /* Stack messages vertically */
  gap: 10px;
  /* Spacing between multiple notifications */
  width: 100%;
  /* Take up full width of the viewport */
  max-width: 80%;
  /* Limit the maximum width to 1200px */
  padding: 10px;
  /* Add padding for spacing on smaller screens */
  box-sizing: border-box;
  /* Ensure padding doesn't overflow */
}

.MsgContainer {
  padding: 10px 20px;
  background-color: #fff;
  color: darkcyan;
  border: 1px solid darkcyan;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.5s ease;
  width: 100%;
  box-sizing: border-box;
}

.MsgContainer p {
  margin: 0;
  font-weight: bold;
}

.MsgContainer.error {
  color: #DC3545;
  border: 1px solid #DC3545;
}




/* Dashboard container (flexbox layout) */
.contentWrap {
  display: flex;
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

/* Left column - Category selection and buttons */
.left-column {
  width: 35%;
  padding-right: 20px;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;

}

.left-column h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.form-wrap {
  width: 80%;
  margin: auto;
}

/* Right column - Form and Attributes */
.right-column {
  width: 65%;
  padding-left: 20px;
}

h3 {
  font-size: 20px;
  color: #333;
}

.head-attr {
  display: flex;
  margin-bottom: 30px;
  align-items: center;
  justify-content: space-between;
}

.head-attr h3 {
  margin: 0;
  /* Remove any default margin */
  flex: 1;
  /* Allows h3 to take up remaining space */
}

.default-btn-2, .remove-btn {
  display: flex;
  width: 33px;
  height: 33px;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: whitesmoke;
}

.default-btn-2:hover {
  background-color: lightgray;
}

.addrows {
  width: 80px;
  
}
label {
  font-weight: bold;
  color: #555;
}
/* Styling for labels and select elements */
label,
select {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  margin-bottom: 5px;
}

#description, #tiktok_description  {
  width: 100%;
  resize: vertical;
  font-family: Arial, sans-serif;
  min-height: 100px;
  max-height: 200px;
}

.dropdown {
  padding: 4px 0px;
  margin-right: 3rem;
}

/* Select2 search box styling */
.select2-container,
.dropdown {
  line-height: 28px;
  width: 100% !important;
}

/* Styling for form section */
.form-section,
.form-wrap {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 20px;
  background-color: #fafafa;
}



.form-group,
.default-form {
  margin-bottom: 15px;
}

.form-group label,
.default-form label {
  font-weight: bold;
  font-size: 14px;
  color: #555;
}


.form-group input,
.default-form input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}


.not-required {
  border: 1px solid #ccc;
}


.field-error {
  border-color: red;
  background-color: #ffe6e6;
}


.remove-btn {
  font-weight: bold !important;
  margin-top: 16px !important;
  text-align: center !important;
  color: white !important;
  background-color: #DC3545 !important;
}


.default-btn{
  background-color: darkcyan;
  width: 100%;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  /* Space between columns */
}

.default-form {
  flex: 1;
  /* Adjust columns to occupy equal space */
}


.default-btn:hover{
  background-color: rgba(0, 139, 139, 0.842);
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Optional, to give form groups a more uniform appearance */
.form-group input[type="text"] {
  height: 30px;
  font-size: 14px;
}