/* Reset default browser spacing and box model */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set base font and page background */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f2f2f2;
  padding: 40px;
  color: #333;
}

/* Headings styling */
h1, h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Generic table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background-color: white;
}

/* Table cell padding and borders */
th, td {
  padding: 12px 15px;
  border: 1px solid #ccc;
}

/* Table header styles */
th {
  background-color: #3498db;
  color: white;
  text-align: left;
}

/* Alternate row background color for readability */
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Form container styles */
form {
  background-color: #fff;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  max-width: 600px;
}

/* Form label spacing */
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

/* Input, select, textarea fields */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

/* Allow vertical resizing of textareas */
textarea {
  resize: vertical;
}

/* Submit button styling */
input[type="submit"] {
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* Hover effect on submit button */
input[type="submit"]:hover {
  background-color: #2980b9;
}
