/* General Styling */
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f4;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Prevents content overflow */
}

/* Header Styling */
.header {
  background-color: #095493;
  padding: 20px;
  color: #333;
  text-align: center;
  border-radius: 8px 8px 0 0;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  flex: 1;
  text-align: left;
}
.header-button {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}
.header-button:hover {
  background-color: #28a745;
}

/* Filter Section Styling */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}
.filter-row {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #e1ecf5;
  padding: 15px;
  border-radius: 6px;
}
.filter-label {
  font-weight: 400;
  font-size: 1rem;
  color: #000000;
  line-height: 23px;
}
.filter-input {
  display: flex;
  gap: 5px;
  align-items: center;
}
.filter-input input[type="number"] {
  padding: 6px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 60px;
}
#niche-filter {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000000;
  width: 250px;
}

/* Order Form Styling */
.form-container {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping of columns */
  gap: 20px;
  margin-bottom: 15px;
  overflow: hidden;
}
.left-column {
  flex: 1 1 45%; /* Flex basis for responsive adjustments */
  max-width: 45%;
  margin-right: 20px;
  box-sizing: border-box;
}
.right-column {
  flex: 1 1 50%; /* Flex basis for responsive adjustments */
  max-width: 50%;
  box-sizing: border-box;
}
.form-column {
  padding: 10px;
  box-sizing: border-box;
}
.form-input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 5px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  font-size: 1.1rem;
}
.btn-primary:hover {
  background-color: #218838;
}

/* Styling for Quantity and Total Price Containers */
.styled-container {
  background-color: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}
.total-price-container .label {
  font-size: 1.5rem;
  color: black;
}
.total-price-container .quantity {
  font-size: 1.75rem;
  font-weight: bold;
  color: #007bff;
}
.total-price-container .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #28a745;
}

/* Alignment for Quantity and Total Price Row */
.total-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.quantity-section, .price-section {
  flex: 1;
  text-align: center;
}
.divider-line {
  width: 1px;
  height: 50px;
  background-color: #ddd;
  margin: 0 10px;
}
.required {
  color: red;
}

/* Table Styling */
.table-auto {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table-auto th,
.table-auto td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-auto th {
  background-color: #f3f3f3;
  font-weight: 700;
  color: #333;
}

/* Column Widths */
.select-col {
  width: 40px;
}
.serial-col, .dr-col {
  width: 60px;
}
.site-col {
  width: 250px;
  font-weight: bold;
}
.niche-col {
  width: 150px;
}
.traffic-col, .price-col {
  width: 100px;
  font-weight: bold;
}
.price-col {
  color: green;
}
.traffic-col {
  color: #000000;
}
.table-label {
  font-size: 1.25rem;
  padding-bottom: 11px;
  color: #000000;
  font-weight: bold;
}
.dataTables_filter {
  padding-bottom: 15px;
}

/* Selected Sites Styling */
.selected-sites-container {
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.9rem;
}
.selected-sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.selected-sites-table th, .selected-sites-table td {
  padding: 4px;
  border-bottom: 1px solid #ddd;
}
#no-sites-message {
display: none; /* Hidden by default */
  font-size: 0.9rem;
  color: red;
  text-align: center;
  padding: 10px;
}
.labelright {
  font-size: 1rem;
  color: #045216;
  border-bottom: 1px solid black;
  padding: 5px;
  margin-bottom: 5px;
  font-weight: 500;
}
.total-price-container.styled-total-price {
  background-color: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  width:96%;
}
