.watermarked {
  position: relative;
}

.watermarked::before {
  content: attr(data-watermark); /* Get watermark text from data attribute */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: rgba(0, 0, 0, 0.2) !important; /* Force faint watermark */
  pointer-events: none; /* Prevent selection */
  z-index: 0;
}

.watermarked span {
  position: relative;
  z-index: 1; /* Ensure actual content appears above watermark */
}

@media only screen and (max-width: 768px) {
  body {
    padding: 5px; /* Reduced padding for smaller screens */
  }

  .login-container,
  .dashboard {
    width: 95%; /* Increased width for better use of space */
    margin: 10px auto; /* Reduced margin */
    padding: 10px; /* Reduced padding */
  }

  .form-group {
    flex-direction: column; /* Stack labels and inputs vertically */
    align-items: stretch; /* Stretch inputs to full width */
  }

  .form-group label {
    width: 100%; /* Full width label */
    text-align: left; /* Align label to the left */
    margin-bottom: 5px; /* Add space below label */
    margin-right: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%; /* Full width inputs */
  }

  .form-group select {
    height: auto; /* Allow select box to adjust height */
  }
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container,
.login-container,
.dashboard {
  background: #b1286059;
  width: 90%;
  max-width: 900px;
  padding: 20px;
  margin: 50px auto;
  box-shadow: 0 0 10px rgba(250, 150, 150, 0.377);
  border-radius: 8px;
}

h2 {
  color: #333;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  width: 150px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group select {
  height: 150px;
  resize: vertical;
}

.form-group textarea {
  resize: vertical;
}

input[type="submit"] {
  background-color: #201344;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 4px;
}

input[type="submit"]:hover {
  background-color: #2d8821;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

.error {
  color: red;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: auto;
  text-align: center;
}
form input[type="text"],
form input[type="password"] {
  width: 90%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form input[type="submit"] {
  width: 90%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
form input[type="submit"]:hover {
  background-color: #0056b3;
}

/* to be used for New task form  */
/* Styles for New Task form only */
.new-task-form {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  border: 2px solid black;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.new-task-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.new-task-form input,
.new-task-form textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid black;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.new-task-form input[type="date"] {
  font-size: 18px;
  padding: 12px;
}

.new-task-form textarea {
  resize: vertical;
}

.new-task-form input[type="submit"] {
  background-color: #007bff;
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.new-task-form input[type="submit"]:hover {
  background-color: #0056b3;
}

.task-update {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  border: 2px solid black; /* Makes the form outline more prominent */
  border-radius: 10px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.task-update label {
  display: block; /* Ensures labels appear above inputs */
  font-weight: bold;
  margin-bottom: 5px;
}

.task-update input,
.task-update textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid black; /* Makes input boxes more prominent */
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box; /* Prevents width issues */
}

.task-update input[type="date"] {
  font-size: 18px; /* Increases text size for better visibility */
  padding: 12px;
}

.task-update textarea {
  resize: vertical; /* Allows resizing but keeps width strict */
}

.task-update input[type="submit"] {
  background-color: #007bff;
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.task-update input[type="submit"]:hover {
  background-color: #0056b3;
}

/* applied to Dashboard form  */

.dashboad-from label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboad-from input,
textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid black;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.dashboad-from input[type="date"] {
  font-size: 18px;
  padding: 12px;
}

.dashboad-from textarea {
  resize: vertical;
}

.dashboad-from input[type="submit"] {
  background-color: #007bff;
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.dashboad-from.dashboad-from input[type="submit"]:hover {
  background-color: #0056b3;
}
tr {
  min-height: 350px; /* Ensures cells are at least 50px tall */
  vertical-align: top; /* Adjust alignment if needed */
}

textarea {
  width: 100%;
}
