/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  background-color: #ffffff; /* White background for navbar */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
  flex: 1;
}

.logo {
  max-width: 150px;
}

.tabs {
  display: flex;
  flex: 2;
  justify-content: flex-end;
  gap: 20px;
}

.tab {
  color: #9747ff; /* Governsafe branding primary color */
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.tab:hover {
  background-color: #f3e8ff; /* Light purple for hover effect */
  color: #8439e6; /* Darker purple for text */
}

.tab.active {
  background-color: #9747ff; /* Active tab background color */
  color: white; /* Active tab text color */
  font-weight: bold;
}

/* Logout Button */
.logout-button {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
}

.logout-button:hover {
  background-color: #8439e6;
  color: white;
}

/* Main Content */
.dashboard-content {
  text-align: center;
  /* padding: 50px; */
  padding-top: 50px;
}

.dashboard-content h1 {
  font-size: 36px;
  color: #9747ff;
}

.welcome-message {
  font-size: 18px;
  margin: 20px 0;
}

/* Footer */
.footer {
  background-color: #9747ff;
  color: white;
  text-align: center;
  padding: 10px 20px;
  position: relative; /* Change this to relative */
  width: 100%;
  margin-top: auto; /* Push the footer to the bottom when needed */
}

/* Weekly Timesheet */
.weekly-timesheet {
  margin: 20px auto;
  max-width: 90%;
  text-align: center;
}

.week-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.week-slider button {
  background-color: #9747ff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.week-slider button:hover {
  background-color: #8439e6;
}

.timesheet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.timesheet-table th,
.timesheet-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.timesheet-table th {
  background-color: #9747ff;
  color: white;
}

.timesheet-table td {
  background-color: #f9f9f9;
}

.project-select {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.hours-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.hours-input {
  width: 60px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
}

.comment-btn {
  background-color: #9747ff;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
}

.submit-btn {
  background-color: #9747ff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
}

.comment-btn:hover {
  background-color: #8439e6;
}

/* Required Icon */
.required-icon {
  color: #ff6b6b; /* Red pastel color */
  font-weight: bold;
  font-size: 14px;
  margin-left: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 50%;
  text-align: center;
  position: relative;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

#comment-text {
  width: 80%; /* Makes it proportional and visually centered */
  margin: 0 auto; /* Centers the textarea horizontally */
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  resize: vertical; /* Allows vertical resizing but disables horizontal resizing */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9; /* Light background */
}

/* Save Comment Button */
#comment-modal .submit-btn {
  background-color: #9747ff;
  color: white;
  border: none;
  padding: 8px 20px; /* Proper spacing for a button-like appearance */
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  width: auto; /* Prevents it from stretching */
  align-self: center; /* Centers the button horizontally */
  transition: all 0.3s ease;
}

#comment-modal .submit-btn:hover {
  background-color: #8439e6; /* Darker purple for hover effect */
}

.modal-content {
  gap: 15px; /* Spacing between elements inside the modal */
  align-items: center; /* Aligns children to the center */
}

.close-btn:hover {
  color: red;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Approved Timesheet */
.approved {
  background-color: #d4edda !important; /* Light green */
  color: #155724 !important; /* Dark green */
}

/* Rejected Timesheet */
.rejected {
  background-color: #f8d7da !important; /* Light red */
  color: #721c24 !important; /* Dark red */
}
