/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
}

.helpdesk-container {
  display: flex;
  flex-direction: column; /* Stack header and main content */
  height: 100vh;
}

/* Header (Always at the top) */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #b20135;
  color: white;
  padding: 10px;
  z-index: 1000;
}

.mobile-header .burger-menu {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 25px; /* Fix it to the top of the viewport */
  left: 0;
  height: 100%;
  width: 250px;
  background-color: #2f3542;
  color: white;
  padding: 20px;
  transform: translateX(-100%); /* Fully hide the sidebar */
  transition: transform 0.3s ease;
  z-index: 999; /* Ensure it slides over content */
}

.sidebar.active {
  transform: translateX(0); /* Show the sidebar */
}

.sidebar h2 {
  font-size: 1.5rem;
}

.sidebar .btn.new-ticket {
  background-color: #b20135;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}

.sidebar .btn.new-ticket:hover {
  background-color: #9e0b3e;
}

.sidebar .filters {
  list-style: none;
  padding: 0;
}

.sidebar .filters a {
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin: 10px 0;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  transition: margin-left 0.3s ease; /* Smoothly adjust the margin */
}

.main-content.shifted {
  margin-left: 300px; /* Shift content to the right by the sidebar width */
}

/* DataTable Styles */
table.dataTable {
  width: 100% !important;
}

/* Status Badge Styling */
.status {
  padding: 5px 10px;
  border-radius: 5px;
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

.status.open {
  background-color: #1e90ff;
}

.status.closed {
  background-color: #57606f;
}

.status.pending {
  background-color: #ffa502;
}

.status.solved {
  background-color: #28a745;
}

/* Status Colors */
.status {
  padding: 5px 10px;
  border-radius: 5px;
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

/* Specific Status Colors */
.status.open {
  background-color: #1e90ff; /* Blue */
}

.status.processing {
  background-color: #28a745; /* Green */
}

.status.rejected {
  background-color: #dc3545; /* Red */
}

.status.closed {
  background-color: #6c757d; /* Grey */
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%); /* Fully hidden by default */
  }

  .sidebar.active {
    transform: translateX(0); /* Slide in on toggle */
  }

  .main-content {
    margin-left: 0; /* No margin for mobile */
  }

  .main-content.shifted {
    margin-left: 300px; /* Shift only when sidebar is active */
  }
}

/*NOVI*/

/* Style the header buttons */
.header-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* Style the Fast Reply button */
.fast-reply-btn {
  width: 200px;
  height: 40px;
  margin-bottom: 20px;
  background-color: #b20135; /* Pale blue */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.fast-reply-btn:hover {
  background-color: #9e0b3e; /* Slightly darker blue */
}

.export-button {
  width: 200px;
  height: 40px;
  margin-bottom: 20px;
  background-color: #b20135; /* Pale blue */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.export-button:hover {
  background-color: #9e0b3e; /* Slightly darker blue */
}

.filter-button {
  width: 200px;
  height: 40px;
  margin-bottom: 20px;
  background-color: #b20135; /* Pale blue */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-button:hover {
  background-color: #9e0b3e; /* Slightly darker blue */
}

#send-fast-reply {
  width: 200px;
  height: 40px;
  margin-top: 15px;
  background-color: #add8e6; /* Pale blue */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#send-fast-reply:hover {
  background-color: #87ceeb; /* Slightly darker blue */
}

/* Modal Styling */
.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;
  padding: 20px;
  border-radius: 8px;
  width: 500px; /* Increase width */
  height: auto; /* Adjust height dynamically */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.quick-reply-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%; /* Match modal width */
  margin: 0 auto; /* Center inside the modal */
}

/* Ensure both textarea and dropdown have the same width */
#quick-reply-textbox,
#quick-reply-dropdown {
  width: 100%; /* Ensure they take full width */
  max-width: 100%; /* Prevent overflow */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Prevents extra width from padding */
}

/* Ensure textarea doesn't overflow */
#quick-reply-textbox {
  min-height: 80px;
  resize: none;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.logout-button {
  background-color: #b20135;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
}

.logout-button:hover {
  background-color: #9e0b3e;
}

/*
Export Modal
*/

/* Export Modal Styles */
/* Export Modal Styles */
.export-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Centered modal content */
.export-modal-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  width: 450px; /* Default for larger screens */
  max-width: 90%; /* Ensures it doesn't exceed 90% of the screen */
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Date picker container */
.export-date-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

/* Individual date input wrapper */
.date-picker {
  display: flex;
  flex-direction: column;
  width: 48%;
}

/* Labels for date inputs */
.date-picker label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Date input fields */
.date-picker input {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Close button */
.export-close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ✅ Responsive design for mobile screens */
@media (max-width: 600px) {
  .export-modal-content {
    width: 85%; /* Make the modal take up more space on smaller screens */
    max-width: none; /* Remove max-width restriction */
    padding: 20px;
  }

  .modal-content {
    width: 85%; /* Make the modal take up more space on smaller screens */
    max-width: none; /* Remove max-width restriction */
    padding: 20px;
  }

  .export-date-container {
    flex-direction: column; /* Stack date pickers on top of each other */
    gap: 15px;
  }

  .date-picker {
    width: 100%; /* Make date pickers take full width */
  }
}
