/* Existing Styles */

#data-grid_wrapper {
  width: 100%;
  margin: 0 auto;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #d3d3d3;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

#data-grid {
  width: 80%; 
  margin: 0 auto;
}

#data-grid td, #data-grid th {
  height: 100px; /* Set consistent row height */
  vertical-align: middle; /* Center content vertically */
}

#data-grid td.logo-column {
  background-color: white; /* Set background color for logo column */
}

.company-info {
  line-height: 1em; /* Reduce line-height to remove space between name and description */
}

.company-info a {
  font-weight: bold;
  text-decoration: none; /* Remove underline from links */
  display: block;
  margin-bottom: 0; /* Remove any margin between the name and description */
}

a {
  font-weight: bold;
  text-decoration: none; /* Remove underline from links */
}

#data-grid_filter input {
  width: 400px !important;  /* Adjust the width of the search box */
  height: 2em;
  text-align: left;
  padding: 0px;
}

.dataTables_wrapper > .dataTables_filter {
  float: none !important;
  text-align: center;
  padding: 10px 0 10px 0;
}

thead {
  background-color: #d9d9d9;
  
}

.logo-column {
  padding: 0 10px; /* Adds 10px padding on the left and right */
  text-align: center; /* Centers the image horizontally within the column */
  background-color: #d3d3d3
  
}

.logo-column img {
  max-width: 80%; /* Ensure the image takes up 90% of the column width */
  height: auto; /* Maintain the aspect ratio of the image */
  
}

/* Styles for smaller screens */
@media (max-width: 600px) {
  .container {
      padding: 0;
      margin: 0;
  }

  #data-grid_filter input {
      width: calc(100% - 2px) !important;  /* Full width minus 1px from left and right */
      margin: 0;
      padding: 0;
  }

  .dataTables_wrapper > .dataTables_filter {
      padding: 10px 0 10px 0;
  }

  #data-grid {
    width: 99%; 
    margin: 0 auto;
  }
}

/* New Styles for Forms */

.form-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
}

button:hover {
  background-color: #0056b3;
}

a.btn-secondary {
  color: #6c757d;
  text-decoration: none;
  font-size: 16px;
}

a.btn-secondary:hover {
  text-decoration: underline;
}
