/* ============================
   General Styles
============================ */
/* Global Styles for Page Scrolling */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff; /* White background for main body */
  color: #333; /* Standard text color */
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}



/* ============================
/*Modal Styles */ 
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* Centered */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* Width of the modal */
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

/* ============================
   Saved Search Table | Home Page
============================ */
#savedSearchesTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px; /* Add space above the table */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#savedSearchesTable th, #savedSearchesTable td {
  border: 1px solid #ddd;
  padding: 10px; /* Increased padding for better spacing */
  text-align: left;
  vertical-align: middle; /* Center-align content vertically */
}

#savedSearchesTable th {
  background-color: #016c31; /* Match your theme's green */
  color: white; /* White text for contrast */
  font-weight: bold;
  text-transform: uppercase; /* Add emphasis to headers */
  font-size: 14px;
}

#savedSearchesTable tr:nth-child(even) {
  background-color: #f9f9f9; /* Light gray for even rows */
}

#savedSearchesTable tr:hover {
  background-color: #eef7ee; /* Subtle greenish hover effect */
  cursor: pointer; /* Indicate row interactivity */
  transition: background-color 0.3s ease;
}

#savedSearchesTable td {
  font-size: 14px; /* Ensure readability */
}

#savedSearchesTable button {
  margin: 0 5px;
  padding: 6px 12px; /* Adjust padding for consistency */
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px; /* Add rounded corners for a modern look */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#savedSearchesTable button.edit-search {
  background-color: #4CAF50;
  color: white;
  border: none;
}

#savedSearchesTable button.edit-search:hover {
  background-color: #45A049; /* Darker green on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
}

#savedSearchesTable button.delete-search {
  background-color: #f44336;
  color: white;
  border: none;
}

#savedSearchesTable button.delete-search:hover {
  background-color: #d32f2f; /* Darker red on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
}


/* ============================
   Overview Section
============================ */
/* General Styles for Content Sections */
.content-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  overflow-y:auto;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #202020;
  margin-bottom: 15px;
  border-bottom: 2px solid #016c31;
  display: inline-block;
  padding-bottom: 5px;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin: 0 auto;
  max-width: 800px; /* Limit paragraph width */
}

/* Styled List */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.styled-list li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #444;
}

.styled-list li strong {
  color: #016c31;
}

/* Box Shadows for Section Separation */
#overviewSection {
  background-color: #f9f9f9;
}

#upcomingSection {
  background-color: #f4fff4;
}

#recentUpdatesSection {
  background-color: #f4f4ff;
}

/* General Button Styling */
.button {
  display: inline-block;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  background-color: #4CAF50; /* Default green color */
  color: white; /* White text */
  border: none;
  border-radius: 5px; /* Rounded corners for a modern look */
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.button:hover {
  background-color: #45A049; /* Slightly darker green on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add subtle shadow on hover */
}

.button:active {
  background-color: #3E8E41; /* Darker green when clicked */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* Inner shadow for pressed effect */
}

/* Secondary Button (Optional) */
.button-secondary {
  background-color: #007BFF; /* Blue for secondary actions */
  color: white;
}

.button-secondary:hover {
  background-color: #0056b3; /* Darker blue */
}

.button-secondary:active {
  background-color: #00408d; /* Even darker blue */
}

/* Disable Button Styling */
.button:disabled {
  background-color: #ccc; /* Light gray for disabled state */
  color: #666; /* Dark gray text */
  cursor: not-allowed; /* Prevent clicking */
  box-shadow: none;
}

/* Dropdown Wrapper in Header */
.dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px;
}

.dropdown {
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  min-width: 200px; /* Ensures consistent dropdown size */
}

.dropdown:focus {
  border-color: #016c31;
  box-shadow: 0 0 5px rgba(1, 108, 49, 0.5);
  outline: none;
}

.clear-dropdown {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.clear-dropdown:hover {
  color: #d40000;
}

/* Tracking Page Controls */
.tracking-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-label {
  font-size: 16px;
  font-weight: bold;
}

.dropdown {
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.dropdown:focus {
  border-color: #016c31;
  box-shadow: 0 0 5px rgba(1, 108, 49, 0.5);
  outline: none;
}

.button {
  font-size: 14px;
  padding: 10px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover {
  background-color: #45a049;
}



/* ============================
   Dropdown Container
============================ */
#dropdownContainer {
  display: flex; /* Align the dropdown and button horizontally */
  position: fixed; /* Keep the container at the top */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  margin-bottom: 10px; /* Adjust space between the dropdown and the button */
}

#dropdownContainer select {
  width: 300px; /* Width of the dropdown */
  font-size: 16px; /* Font size of the dropdown text */
  padding: 10px; /* Space inside the dropdown */
  border: 1px solid #ccc; /* Border around the dropdown */
  border-radius: 5px; /* Rounded corners */
  background-color: #f9f9f9; /* Background color */
}

#dropdownContainer label {
  font-size: 14px; /* Font size for the label */
  margin-bottom: 10px; /* Space below the label */
  display: block; /* Makes the label a block element */
}

/* ============================
   Add New Person Container
============================ */
#addNewPersonContainer {
  text-align: center; /* Center content horizontally */
  margin-top: 5px; /* Space above the container */
  padding: 20px; /* Space inside the container */
  background-color: #f4f4f4; /* Background color */
  border: 1px solid #ddd; /* Border around the container */
  border-radius: 10px; /* Rounded corners */
}

#addPersonButton {
  font-size: 16px; /* Font size for the button */
  padding: 10px 20px; /* Space inside the button */
  background-color: #007bff; /* Button background color */
  color: white; /* Button text color */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
}

#addPersonButton:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

#addPersonForm {
  display: none; /* Hidden by default */
  margin-top: 10px; /* Space above the form */
  padding: 10px; /* Space inside the form */
  border: 1px solid #ccc; /* Border around the form */
  border-radius: 5px; /* Rounded corners */
  background-color: #fff; /* Background color */
}

#addPersonForm label {
  display: block; /* Each label on a new line */
  font-size: 14px; /* Font size for the labels */
  margin-bottom: 5px; /* Space below each label */
}

#addPersonForm input {
  width: 100%; /* Full width for inputs */
  font-size: 14px; /* Font size for input text */
  padding: 8px; /* Space inside the inputs */
  margin-bottom: 10px; /* Space below each input */
  border: 1px solid #ccc; /* Border around inputs */
  border-radius: 5px; /* Rounded corners */
}

#savePersonButton {
  font-size: 16px; /* Font size for the button */
  padding: 10px 20px; /* Space inside the button */
  background-color: #28a745; /* Green background */
  color: white; /* Text color */
  border: none; /* No border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
}

#savePersonButton:hover {
  background-color: #218838; /* Darker green on hover */
}

/* ============================
   General Button Styles
============================ */
button {
  font-family: 'Arial', sans-serif; /* Button font family */
  font-size: 16px; /* Font size */
  padding: 10px 20px; /* Space inside the button */
  border: 1px solid #ddd; /* Border around buttons */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
}

button:hover {
  background-color: #f4f4f4; /* Light gray on hover */
}


/* ============================
   Header
============================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #202020; /* Dark gray for contrast */
  height: 60px; /* Set a fixed height for the header */
  position: fixed; /* Keep the header at the top */
  top: 0;
  width: 100%; /* Ensure the header spans the full width */
}

header img {
  height: 80px; /* Make the logo large */
  width: auto;
  object-fit: contain;
  margin-right: 20px; /* Add spacing between logo and elements */
}

header button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

header button:hover {
  background-color: #45A049;
}

/* Styles for the logo container */

.logo-container {
  position: relative;
  display: inline-block; /* Ensures the container fits around the image */
  background: radial-gradient(circle, rgba(76, 175, 80, 0.3), rgba(0, 0, 0, 0)); /* Green fading to transparent */
  padding: 12px; /* Slightly larger padding for a balanced look */
  border-radius: 12px; /* Softer edges for a modern feel */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover animation */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/* Logo Image */
.logo-container img {
  display: block;
  height: 60px; /* Adjust size as needed */
  width: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease; /* Smooth hover animation for image */
}




/* ============================
   Sidebar
============================ */
.wrapper {
  display: flex;
  margin-top: 60px; /* Adjust for fixed header */
  height: calc(100vh - 60px);
  width: 100%;
  overflow: hidden; /* Prevent content overflow */
}

#sidebar {
  position: fixed;
  top: 82px;
  left: 0;
  height: 100%;
  width: 250px; /* Default expanded width */
  background: #323232; /* Dark theme color */
  color: #ffffff; /* Text color for contrast */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space links and footer apart */
  padding: 20px 10px;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5); /* Adds depth */
  transition: width 0.3s ease, transform 0.3s ease;
  z-index: 1000; /* Keep above main content */
}

#sidebar.collapsed {
  width: 60px; /* Compact width for collapsed state */
}

#sidebar.collapsed .nav-links a {
  text-align: center; /* Align icons for collapsed state */
  padding: 10px 0;
}

.sidebar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.sidebar-header button {
  background: none;
  border: none;
  color: #00ff99; /* Highlight color */
  font-size: 1.5rem; /* Adjust size for prominence */
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease, transform 0.2s ease; /* Smooth hover and click effects */
}

/* Hover Effect */
.sidebar-header button:hover {
  color: #00cc7a; /* Slightly darker highlight on hover */
  transform: scale(1.2); /* Slight zoom effect */
}

/* Active (Click) Effect */
.sidebar-header button:active {
  color: #009e60; /* Even darker green on click */
  transform: scale(1); /* Reset zoom when clicked */
}

.sidebar-header button:focus {
  color: inherit; /* Keeps the original text color */
  box-shadow: none; /* Removes the glow */
  outline: none; /* Ensures no default outline */
}

/* Optional: Add a Ripple Effect on Click */
.sidebar-header button:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 255, 153, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  from {
    width: 0;
    height: 0;
    opacity: 1;
  }
  to {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

/* ============================
   Sidebar Navigation Links
============================ */
#sidebar .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* Push footer to the bottom */
}

#sidebar .nav-links li {
  margin: 10px 0; /* Compact spacing */
}

#sidebar .nav-links a {
  display: flex;
  align-items: center;
  color: #ffffff; /* Text visibility */
  text-decoration: none;
  font-size: 16px; /* Slightly smaller for cleaner look */
  padding: 10px;
  border-radius: 4px; /* Rounded edges */
  transition: background 0.3s ease, transform 0.2s ease;
}

#sidebar .nav-links a:hover {
  background: #016c31; /* Hover color to match palette */
  transform: translateX(5px); /* Subtle slide effect */
}

#sidebar.collapsed .nav-links a {
  display:none;
  justify-content: center;
  padding: 8px;
  text-align: center;
  opacity: 0.9;
}

#sidebar.collapsed .nav-links a:hover {
  transform: scale(1.05); /* Subtle hover scaling */
}

/* ============================
   Sidebar Footer
============================ */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  background-color: #111;
  color: #ccc;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#sidebar.collapsed .footer {
  opacity: 100;
  transform: translateY(10px); /* Subtle hide effect */
  pointer-events: none;
}

/* ============================
   Main Content
============================ */
#content {
  flex-grow: 1;
  margin-left: 250px; /* Align with expanded sidebar */
  padding: 2rem;
  transition: margin-left 0.3s ease;
  overflow-y: auto;
}

#sidebar.collapsed ~ #content {
  margin-left: 60px; /* Align with collapsed sidebar */
}

/* ============================
   Animations and Hover Effects
============================ */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

#sidebar {
  animation: slideIn 0.5s ease;
}


/* ============================
   Tables and Results
============================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #ffffff;
  font-size: 14px;
}

table th, table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

table th {
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
}


#resultsTable tr:nth-child(even),
#statusTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#trackingContainer {
  overflow-y: auto;
  max-height: 400px;
  border: 1px solid #ccc;
}

/* ============================
   Chart and Table Containers
============================ */
.chart-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.table-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.table-container .filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* ============================
   Tracking Table Styles
============================ */
#trackingTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  font-size: 14px;
}

/* Style the table header */
#trackingTable th {
  background-color: #5a5a5a; /* Darker gray for a modern look */
  color: #ffffff; /* White text for contrast */
  text-align: left; /* Left-align text */
  padding: 12px; /* Slightly larger padding for better spacing */
  border: 1px solid #ddd; /* Subtle border for separation */
  font-size: 0.95rem; /* Slightly smaller font for compact design */
  text-transform: uppercase; /* Uppercase for headings */
  letter-spacing: 0.05rem; /* Slight letter spacing for clarity */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effects */
}

/* Hover Effect for Header Cells */
#trackingTable th:hover {
  background-color: #016c31; /* Green highlight on hover */
  color: #ffffff; /* Keep text white on hover */
}

/* Header Shadow Effect (Optional) */
#trackingTable th {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Style the table rows */
#trackingTable tr:nth-child(even) {
  background-color: #f2f2f2;
}

#trackingTable tr:hover {
  background-color: #ddd;
}

/* Style the table cells */
#trackingTable td {
  padding: 10px; /* Slightly larger padding for improved spacing */
  border: 1px solid #ddd; /* Light border for clarity */
  text-align: center; /* Center-align text */
  vertical-align: middle; /* Ensure vertical alignment in multi-line cells */
  font-size: 0.9rem; /* Slightly smaller text for cleaner look */
  color: #333; /* Standard text color */
  background-color: #ffffff; /* Default white background */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

/* Hover Effect for Rows */
#trackingTable tr:hover td {
  background-color: #f9f9f9; /* Subtle gray highlight */
  transform: scale(1.01); /* Slight zoom for interactivity */
}

/* Alternate Row Colors for Better Readability */
#trackingTable tr:nth-child(even) td {
  background-color: #f4f4f4; /* Light gray for alternate rows */
}

/* First Column Styling (Optional) */
#trackingTable td:first-child {
  font-weight: bold; /* Bold first column for emphasis */
  color: #000000; /* Green text */
}

/* Last Column Styling (Optional) */
#trackingTable td:last-child {
  font-style: italic; /* Italicize last column text */
  color: #555; /* Slightly lighter text */
}


#trackingTableContainer {
  overflow-y: auto;
  max-height: 400px;
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px;
}

/* ============================
   Buttons and Dropdowns
============================ */
.filter-button,
.status-dropdown {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
}

.filter-button:hover,
.status-dropdown:hover {
  background-color: #e6e6e6;
}

.filter-button:active {
  background-color: #ddd;
}

.status-dropdown {
  width: 100%;
  font-size: 14px;
}

#openAllSelected {
  display: block;
  margin: 15px auto;
}

/* ============================
   Miscellaneous
============================ */
#resultsTableContainer {
  max-height: 85%;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #fff;
}

#addPersonButton {
  display: block;
  margin: 0 auto; /* Center the button horizontally */
  margin-bottom: 20px; /* Add space below the button */
  padding: 10px 20px; /* Adjust button padding */
  background-color: #4CAF50; /* Add a background color */
  color: white; /* Change text color to white */
  border: none; /* Remove border */
  border-radius: 5px; /* Add rounded corners */
  cursor: pointer; /* Change cursor to pointer */
}

#addPersonButton:hover {
  background-color: #45a049; /* Slightly darker green on hover */
}

#clearClientSelection {
  z-index: 1000;
}

/* Fix modal alignment and spacing */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px; /* Reduce width for better alignment */
  max-width: 90%;
}

.modal-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 14px;
  margin-bottom: 10px;
}

.modal-content textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 5px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: none;
}

.modal-content button {
  display: inline-block;
  margin: 10px 5px;
  padding: 6px 12px;
  border: none;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.modal-content button:hover {
  background: #45a049;
}


/* Table Styling for Alert Button */
.alert-button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
}

.alert-button:hover {
  opacity: 0.8;
}


/* Online Mentions Page 
/* General styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
  color: #333;
}

h2 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 5px;
}

/* Section header */
h3 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 5px;
}

/* Form container */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #555;
  font-weight: bold;
}

form input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

form input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Form buttons */
form button,
#openAllSelected {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

form button:hover,
#openAllSelected:hover {
  background-color: #45a049;
}

#openAllSelected {
  margin-top: 10px;
  display: block;
  width: max-content;
}

/* Results container */
/* Style the table container */
#searchResults {
  margin-top: 20px;
  max-height: 80%;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f8f8f8;
}

/* Style the table */
#searchResults table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  overflow-y: auto;
}

/* Style the table header */
#searchResults th {
  background-color: #5a5a5a; /* Darker gray for a modern look */
  color: #ffffff; /* White text for contrast */
  text-align: left; /* Left-align text */
  padding: 12px; /* Slightly larger padding for better spacing */
  border: 1px solid #ddd; /* Subtle border for separation */
  font-size: 0.95rem; /* Slightly smaller font for compact design */
  text-transform: uppercase; /* Uppercase for headings */
  letter-spacing: 0.05rem; /* Slight letter spacing for clarity */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effects */
}

/* Hover Effect for Header Cells */
#searchResults th:hover {
  background-color: #016c31; /* Green highlight on hover */
  color: #ffffff; /* Keep text white on hover */
}

/* Header Shadow Effect (Optional) */
#searchResults th {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/* Style the table rows */
#searchResults tr:nth-child(even) {
  background-color: #f2f2f2;
}

#searchResults tr:hover {
  background-color: #ddd;
}

/* Style the table cells */
#searchResults td {
  padding: 10px; /* Slightly larger padding for improved spacing */
  border: 1px solid #ddd; /* Light border for clarity */
  text-align: center; /* Center-align text */
  vertical-align: middle; /* Ensure vertical alignment in multi-line cells */
  font-size: 0.9rem; /* Slightly smaller text for cleaner look */
  color: #333; /* Standard text color */
  background-color: #ffffff; /* Default white background */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

/* Hover Effect for Rows */
#searchResults tr:hover td {
  background-color: #f9f9f9; /* Subtle gray highlight */
  transform: scale(1.01); /* Slight zoom for interactivity */
}

/* Alternate Row Colors for Better Readability */
#searchResults tr:nth-child(even) td {
  background-color: #f4f4f4; /* Light gray for alternate rows */
}

/* First Column Styling (Optional) */
#searchResults td:first-child {
  font-weight: bold; /* Bold first column for emphasis */
  color: #016c31; /* Green text */
}

/* Last Column Styling (Optional) */
#searchResults td:last-child {
  font-style: italic; /* Italicize last column text */
  color: #555; /* Slightly lighter text */
}


/* Style for dropdowns in the table */
#searchResults select {
  width: 120px; /* Maintain compact width */
  padding: 6px 8px; /* Balanced padding for better usability */
  border: 1px solid #ccc; /* Neutral border */
  border-radius: 4px; /* Rounded edges */
  background-color: #ffffff; /* Clean white background */
  color: #333; /* Standard text color */
  font-size: 0.9rem; /* Slightly smaller font for compact design */
  transition: all 0.3s ease; /* Smooth transitions for hover and focus */
  cursor: pointer; /* Indicate it's clickable */
}

/* Hover Effect */
#searchResults select:hover {
  border-color: #016c31; /* Highlight border on hover */
  background-color: #f4f4f4; /* Light gray background on hover */
}

/* Focused State */
#searchResults select:focus {
  border-color: #016c31; /* Highlight border when focused */
  box-shadow: 0 0 5px rgba(1, 108, 49, 0.5); /* Subtle glow effect */
  outline: none; /* Remove default focus outline */
}

/* Disabled State */
#searchResults select:disabled {
  background-color: #f9f9f9; /* Subtle gray for disabled */
  color: #aaa; /* Lighter text for disabled state */
  border-color: #ddd; /* Lighter border */
  cursor: not-allowed; /* Disabled cursor */
}

/* Custom Dropdown Arrow (Optional) */
#searchResults select {
  appearance: none; /* Remove default browser styles */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M0 0l5 6 5-6z" fill="%23016c31"/></svg>'); /* Custom arrow */
  background-repeat: no-repeat;
  background-position: right 10px center; /* Align arrow */
  background-size: 12px 8px; /* Adjust size */
  padding-right: 30px; /* Ensure space for custom arrow */
}

/* Adjust table column widths */
#searchResults th:nth-child(1), /* ALERT */
#searchResults td:nth-child(1),
#searchResults th:nth-child(2), /* SELECT */
#searchResults td:nth-child(2) {
  width: 50px; /* Reduce width */
  text-align: center;
}

/* Reduce the flag button size */
.alert-button {
  font-size: 16px;
  padding: 2px;
  cursor: pointer;
}

/* Style the checkboxes */
/* Base Style for Select Links */
.select-link {
  display: inline-flex; /* Center the checkbox */
  align-items: center;
  justify-content: center;
  width: 24px; /* Adjust for larger click area */
  height: 24px;
  cursor: pointer;
  background-color: #f4f4f4; /* Light background */
  border: 2px solid #ccc; /* Subtle border */
  border-radius: 4px; /* Rounded edges */
  transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth animations */
}

/* Hover Effect */
.select-link:hover {
  background-color: #016c31; /* Highlight color */
  border-color: #016c31; /* Match the hover background */
  transform: scale(1.3); /* Slight zoom on hover */
}

/* Active/Checked State */
.select-link:active {
  background-color: #eef7ee; /* Softer highlight */
  transform: scale(1.1); /* Slight bounce-back effect */
}


#searchResults p {
  text-align: center;
  color: #777;
  font-size: 1rem;
}

/* Base Style for Submit Button */
form button[type="submit"] {
  background-color: #4CAF50; /* Green background */
  color: white; /* White text */
  border: none; /* No border */
  padding: 8px 12px; /* Reduced height for compact look */
  font-size: 0.9rem; /* Slightly smaller font */
  font-weight: bold; /* Bold text for emphasis */
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 6px; /* More pronounced rounding */
  text-align: center; /* Center text */
  display: inline-block; /* Consistent display */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover and click effects */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Hover Effect */
form button[type="submit"]:hover {
  background-color: #45a049; /* Darker green */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

/* Active (Click) Effect */
form button[type="submit"]:active {
  transform: translateY(0); /* Reset lift on click */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Softer shadow on click */
  background-color: #3e8e41; /* Even darker green for active state */
}

/* Disabled State */
form button[type="submit"]:disabled {
  background-color: #cccccc; /* Gray background for disabled state */
  cursor: not-allowed; /* Disabled cursor */
  color: #666666; /* Lighter text */
  box-shadow: none; /* Remove shadow */
}

/* General Mobile Styles */
@media (max-width: 768px) {
  body {
    padding: 5px;
    font-size: 14px;
  }

  /* Header */
  header {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 10px;
  }

  header .logo-container img {
    height: 40px;
  }

  header button#logout {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Sidebar */
  #sidebar {
    width: 200px;
    transform: translateX(-100%); /* Default hidden */
    transition: transform 0.3s ease-in-out;
    position: fixed;
    z-index: 1000;
  }

  #toggleSidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1200; /* Ensure it’s above other elements */
    background: #202020; /* Match sidebar color */
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  
  #toggleSidebar:hover {
    background: #016c31; /* Slightly lighter green */
  }
  
  /* Sidebar Collapsed */
  #sidebar.collapsed {
    width: 50px; /* Minimal width */
    transform: translateX(0); /* Keep visible */
    overflow: hidden; /* Hide overflowing content */
  }
  
  #sidebar.collapsed .nav-links li a {
    display: none; /* Hide navigation links */
  }
  
  #sidebar.collapsed .sidebar-header {
    display: flex; /* Keep the sidebar header visible */
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    padding: 10px;
    border-bottom: 1px solid #444; /* Optional for a divider */
  }
  
  /* Expanded Sidebar */
  #sidebar.expanded {
    width: 200px; /* Full width when expanded */
    transform: translateX(0);
  }
  
  /* Client Dropdown (#clientDropdown) */
  #clientDropdown {
    width: 200px; /* Compact width */
    max-width: 90%; /* Restrict width to the container */
    margin: 10px auto; /* Center it */
    padding: 5px; /* Reduce padding */
    font-size: 14px;
  }
  
  #clientDropdownContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 250px; /* Restrict container size */
    margin: 10px auto; /* Center the dropdown container */
  }
  
  /* Dropdown Button */
  #dropdownContainer button {
    width: 150px; /* Compact button */
    font-size: 14px;
    padding: 8px;
  }

  /* Content Area */
  #content {
    margin-left: 0; /* Full width when sidebar is collapsed */
    padding: 10px;
  }

  /* Dropdown */
  #dropdownContainer {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 90%;
    margin: 0 auto;
  }

  #dropdownContainer select,
  #dropdownContainer button {
    width: 100%;
    font-size: 14px;
    padding: 8px;
  }

  /* Tables */
  table {
    font-size: 12px;
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
  }

  table th,
  table td {
    padding: 6px;
  }

  table th {
    font-size: 12px;
    background-color: #f0f0f0;
  }

  table td {
    font-size: 11px;
  }

  #savedSearchesTable,
  #trackingTable {
    overflow-x: auto;
    display: block;
    max-width: 100%; /* Ensure it doesn’t overflow */
  }

  /* Forms */
  form {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  form label {
    font-size: 12px;
  }

  form input,
  form button {
    font-size: 14px;
    padding: 8px;
    width: 100%;
    max-width: 300px; /* Limit width */
    margin: 0 auto;
  }

  /* Buttons */
  button {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* Modals */
  .modal-content {
    width: 90%;
    padding: 15px;
  }

  /* Charts */
  .chart-container {
    padding: 10px;
    width: 100%;
    height: auto;
  }
}

/* Specific Adjustments for Extra-Small Devices */
@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  header {
    padding: 6px 8px;
  }

  header .logo-container img {
    height: 30px;
  }

  header button#logout {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Sidebar Toggle Button */
  #toggleSidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1200; /* Ensure it’s above other elements */
    background: #202020; /* Match sidebar color */
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  #toggleSidebar:hover {
    background: #016c31; /* Slightly lighter green */
  }

  /* Collapsed Sidebar */
  #sidebar.collapsed {
    width: 20px; /* Significantly smaller when collapsed */
    transform: translateX(0); /* Keep visible */
    overflow: hidden; /* Hide overflowing content */
  }

  #sidebar.collapsed .nav-links li a {
    display: none; /* Hide navigation links */
  }

  #sidebar.collapsed .sidebar-header {
    display: flex; /* Hide header when collapsed */
  }

  /* Expanded Sidebar */
  #sidebar.expanded {
    width: 200px; /* Full width when expanded */
    transform: translateX(0);
  }

  /* Dropdown Container for Client Selection */
  #dropdownContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 90%; /* Restrict width to 90% of the screen */
    margin: 10px auto; /* Center it */
  }

  #dropdownContainer select {
    width: 250px; /* Compact width */
    padding: 8px; /* Reduce padding */
    font-size: 14px;
  }

  #dropdownContainer button {
    width: 150px; /* Compact button size */
    font-size: 14px;
    padding: 8px;
}


  #content {
    padding: 5px;
  }

  /* Tables */
  table {
    font-size: 10px;
  }

  table th,
  table td {
    padding: 4px;
  }

  table th {
    font-size: 10px;
  }

  table td {
    font-size: 9px;
  }

  /* Forms */
  form label {
    font-size: 10px;
  }

  form input,
  form button {
    font-size: 12px;
    padding: 6px;
  }
}
