/* Main styles for the page */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* Styles for the main content container */
.container {
  display: flex;
}

/* Styles for the sidebar */
.sidebar {
  width: 250px; /* Fixed width for the sidebar */
  padding: 15px;
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.sidebar h2 {
  color: #333;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #007bff;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

/* Styles for the main content */
.main-content {
  flex: 1; /* Main content takes up the remaining space */
  padding: 15px;
}

/* Styles for forms */
form {
  margin: 0;
  padding: 0;
}

form input[type="text"],
form input[type="email"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

form input[type="checkbox"],
form input[type="radio"] {
  margin-right: 5px;
}

form button[type="submit"],
.add-trip-button {
  background-color: #5cb85c; /* Green background color */
  color: white; /* White text color */
  border: none; /* Remove default border */
  padding: 10px 20px; /* Internal padding */
  text-align: center; /* Center text alignment */
  text-decoration: none; /* Remove text underline */
  display: inline-block; /* Align button */
  font-size: 16px; /* Font size */
  margin-top: 10px; /* Top margin */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transitions for background and shadow */
}

form button[type="submit"]:hover,
.add-trip-button:hover {
  background-color: #4cae4c; /* Darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}

/* Special styles for the select element with id "region" */
#region {
  width: 20vw; /* Width of the element is set to fit its content */
}

/* Styles for the navigation menu */
nav {
  background: #333;
  color: #fff;
  padding: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
}

nav ul li a:hover {
  background: #575757;
}

/* Styles for tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #f4f4f4;
}

.note {
  background-color: #e7f3fe;
  border-left: 4px solid #31708f;
  padding: 10px;
  margin: 10px 0;
}

/* Styles for error and success messages */
.error-message,
.success-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.error-message {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.success-message {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

/* Additional styles for the Client Details page */
.client-details,
.main-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.client-info p {
  margin: 10px 0;
  font-size: 1em;
}

.client-info strong {
  font-weight: bold;
}

.trip-table {
  margin-top: 20px;
}

.trip-table th,
.trip-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.trip-table th {
  background-color: #e9ecef;
}

.trip-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Styles for Edit and Delete links */
.action-link {
  display: inline-block;
  margin: 5px;
  padding: 5px;
  text-decoration: none;
  font-weight: normal; /* Lighter text weight */
  font-size: 14px;
  border-radius: 3px; /* Smaller border-radius for simple links */
  color: #333; /* Primary text color */
}

.action-link:hover {
  text-decoration: underline; /* Underline on hover */
}

/* Styles for the Edit link */
.action-link.edit {
  color: #6c757d; /* Softer gray color for Edit */
}

.action-link.edit:hover {
  color: #5a6268; /* Darker gray on hover */
}

/* Styles for the Delete link */
.action-link.delete {
  color: #dc3545; /* Dark red color for Delete */
}

.action-link.delete:hover {
  color: #c82333; /* Darker red on hover */
}

/* Styles for the "Back" button */
.back-button,
.cancel-button {
  border: none;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #6c757d; /* Medium gray background */
  color: #fff; /* White text color */
  text-decoration: none;
  border-radius: 5px;
  transition: box-shadow 0.3s; /* Smooth transition */
}

.back-button:hover,
.cancel-button:hover {
  background-color: #5a6268;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Shadow */
}
