/* Base styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 40px;
  background: linear-gradient(to right, #87cadb, #ffffff);
  color: #333;
}

/* Headings */
h1, h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Form container */
form {
  background: #ffffff59;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto 40px auto;
}

/* Form labels and inputs */
label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #007BFF;
  outline: none;
}

/* Button styling */
button {
  background-color: #007BFF;
  color: white;
  border: none;
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Tool info and suggestions */
#tool_info {
  margin-top: 20px;
  padding: 10px;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  transition: background 0.3s ease;
  cursor: pointer;
}

.suggestion:hover {
  background: #e0e0e0;
}

.suggestion img {
  display: block;
  margin-top: 8px;
  max-width: 100px;
  border-radius: 4px;
}

/* Tool list section */
#tool-list {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Table styling */
#tool-list table {
  width: 100%;
  border-collapse: collapse;
}

#tool-list th, #tool-list td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

#tool-list th {
  background-color: #f0f0f0;
  font-weight: bold;
}

#tool-list img {
  max-width: 60px;
  border-radius: 4px;
}
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #007BFF;
  outline: none;
}

input[type="file"] {
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

#image_preview img {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Responsive tweaks */
@media (max-width: 600px) {
  form, #tool-list {
    padding: 20px;
  }

  #tool-list table, #tool-list th, #tool-list td {
    font-size: 14px;
  }
}