/* Main Body and Containers */
body {
  background-color: #212529; /* Main body color */
  color: #fff; /* White text */
}

.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Ensure both containers stretch to equal height */
}


.left-container,
.right-container {
  background-color: #212529; /* Match main body color */
  border: 1px solid #fff; /* White border */
  border-radius: 8px;
  width: 48%; /* Adjust width for side-by-side layout */
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Stretch content vertically */
}

/* Container Spacing */
.left-container {
  margin-right: 2%;
}

h2 {
  text-align: center;
}

input,
textarea,
select {
  width: 100%; /* Full width for input elements */
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #343a40; /* Match darker container style */
  color: #fff; /* White text for input fields */
}

.card {
  width: 49%;
  margin-left: 6px;
}

.card-header i {
  float: right;
}

.fa-trash,
.fa-pencil-alt {
  cursor: pointer;
}

.hidden {
  display: none;
}

.swatch {
  width: 15px;
  height: 15px;
  /*margin-right: 10px;*/
  border-radius: 50%;
  cursor: pointer;
}

.swatch:hover,
.active {
  border: 3px solid rgb(247, 189, 189);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem; /* Space between form elements */
  text-align: center; /* Center-align content */
}

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block; /* Center label above each input */
}

.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Swatches Section */
.swatches {
  display: flex;
  justify-content: center; /* Center swatches */
  gap: 0.5rem; /* Space between swatches */
}

.tag-cloud-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-cloud {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.875rem;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #ddd; /* Border for tags */
  color: black; /* Text color remains black */
  transition: all 0.3s ease;
}

.tag:hover {
  color: black; /* Ensure text remains black on hover */
  opacity: 0.8; /* Slight opacity change for effect */
  text-decoration: none; /* No underline on hover */
}

.tag.technology {
  background-color: #bfdbfe;
}

.tag.programming {
  background-color: #c6f6d5;
}

.tag.web-development {
  background-color: #fefcbf;
}

.tag.design {
  background-color: #e0e7ff;
}

.tag.ai {
  background-color: #f3e8ff;
}

.tag.machine-learning {
  background-color: #fbb6ce;
}

.tag.technology:hover {
  background-color: #93c5fd;
}

.tag.programming:hover {
  background-color: #9ae6b4;
}

.tag.web-development:hover {
  background-color: #fef08a;
}

.tag.design:hover {
  background-color: #c7d2fe;
}

.tag.ai:hover {
  background-color: #e9d5ff;
}

.tag.machine-learning:hover {
  background-color: #fbcfe8;
}

/* Adjustments for "Search by Color" section */
#tag-filters {
  /*display: flex;*/
  align-items: center;
  gap: 1rem; /* Spacing between label and swatches */
}

#tag-filters .swatches {
  display: flex;
  gap: 0.5rem;
}

#tag-filters .filter {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

#tag-filters .filter:hover,
#tag-filters .filter.active {
  border-color: #f7bdbd; /* Highlight on hover or active */
}

/* Align icons (checkbox, edit, delete) */
.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between icons */
}

.note-checkbox {
  margin: 0; /* Remove extra margin */
  cursor: pointer;
}

/* Add tag badge styling */
.tag-badge {
  background-color: #ccc;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  margin-left: 1rem;
}

.card-body {
  background-color: #f8f9fa; /* light grey for the content */
  padding: 10px;
}

.card-footer {
  background-color: #343a40; /* dark background for the badge section */
  padding: 10px;
  display: flex;
  justify-content: flex-end; /* Align the badge to the right */
  align-items: center;
}

.card-footer .badge {
  margin-left: auto; /* Ensures the badge aligns to the right */
}

/* Warning message styles */
.alert-warning {
  text-align: center;
  font-weight: bold;
}

.d-none {
  display: none !important;
}

/* Disable search field */
.search-disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Search field disabling styles */
.search-field.disabled {
  pointer-events: none;
  opacity: 0.6;
}





/* New Container Styles (for buttons section) */
.new-container {
  background-color: #212529; /* Dark container background */
  border-radius: 8px;
  border: 1px solid #fff; /* White border */
  padding: 20px;
  margin-top: 20px; /* Space between this container and search section */
}

.new-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.new-container .row {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  /*gap: 0.1rem;  Reduced space between columns */
}

.new-container .col-6 {
  flex: 0 0 35%; /* Make each column take up 48% of the row 
width change value so it will reduce the gap between the 2 colums*/
  display: flex;
  flex-direction: column;
  align-items: center;
 margin-right: 0; /* Reduced right margin to minimize space */
  margin-bottom: 0.5rem; /* Space between buttons in the same column */
  }


/* Remove the margin from the last column to avoid unnecessary gap */
.new-container .col-6:last-child {
  margin-right: 0;
}


.new-container button {
  width: 150px; /* Set a fixed width for the buttons */
  padding: 0.5rem; /* Adjust padding for button size */
  font-size: 1rem; /* Appropriate font size */
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem; /* Space between buttons in the same column */
  color: black; /* Set text color to black */
  text-align: center;
}

.new-container button:hover {
  opacity: 0.8;
}

/* Button Color Variants */
.new-container .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.new-container .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
}

.new-container .btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.new-container .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}
