/* Default styles for light mode */
body {
  background-color: #f2f2f2;
  color: #333;
  font-family: 'Liberation Serif', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Styles for dark mode */
body.dark-mode {
  background-color: #333 !important;
  color: #f2f2f2 !important;
}

/* Toggle switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Flexbox layout for sidebar and content */
.dashboard-container {
  display: flex; /* Use flexbox for layout */
  margin-top: 2%;
  height: calc(100vh - 100px); /* Full height minus header and footer */
}

.sidebar {
  width: 250px; /* Fixed width for sidebar */
  padding: 20px;
  box-shadow: 0px 0 3px rgba(0, 0, 0, 0.1);
  /*background-color: #f8f8f8; /* Light background color */
  overflow-y: auto; /* Scrollable sidebar */
}

body.dark-mode .sidebar.dark-mode {
  background-color: #444; /* Dark background color for sidebar */
}
.sidebar.dark-mode {
  background-color: #444; /* Dark background color for sidebar */
}

.content {
  flex: 1; /* Take up remaining space */
  padding: 20px;
  overflow-y: auto; /* Scrollable content */
}

/* Sidebar link styles */
.sidebar h5 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.sidebar ul li a {
  text-decoration: none;
  font-size: 16px;
  color: #333; /* Dark text color */
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

body.dark-mode .sidebar ul li a {
  color: #f2f2f2; /* Light text color for dark mode */
}

.sidebar ul li a:hover {
  background-color: #e0e0e0; /* Light hover background */
}

body.dark-mode .sidebar ul li a:hover {
  background-color: #555; /* Dark hover background for dark mode */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column; /* Stack sidebar and content vertically */
  }

  .sidebar {
    width: 100%; /* Full width on small screens */
    height: auto;
    padding: 10px;
  }

  .content {
    margin-left: 0;
  }
}

.error {
  color: red;
  font-weight: bold;
  margin-bottom: 15px;
  border: 1px solid red;
  padding: 10px;
  border-radius: 5px;
  background-color: #ffe6e6; /* Light red background */
}

body.dark-mode .error {
  background-color: #660000; /* Dark red background for dark mode */
  color: #f2f2f2; /* Light text color for dark mode */
  border-color: #ff6666; /* Light red border for dark mode */
}

.success {
  color: green;
  font-weight: bold;
  margin-bottom: 15px;
  border: 1px solid green;
  padding: 10px;
  border-radius: 5px;
  background-color: #e6ffe6; /* Light green background */
}

body.dark-mode .success {
  background-color: #006600; /* Dark green background for dark mode */
  color: #f2f2f2; /* Light text color for dark mode */
  border-color: #66ff66; /* Light green border for dark mode */
}

.ad-spot-details {
  width: 100%;
  margin-top: 10px;
}

.ad-spot-details td {sdxdds
  padding: 5px 10px;
}

.ad-spot-details tr {
  border-bottom: 1px solid #ccc;
}

body.dark-mode .ad-spot-details tr {
  border-bottom: 1px solid #555; /* Dark border for dark mode */
}

.ad-spot-details td a {
  color: #007bff;
  text-decoration: none;
}

.ad-spot-details td a:hover {
  text-decoration: underline;
}

/* Additional styles for login and role management pages */
.container {
  margin-top: 2%;
}

.header .title a {
  text-decoration: none;
  color: inherit;
}

.header .user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .user-info p {
  margin: 0;
}

.header .user-info .button {
  margin-left: 10px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.row .columns {
  flex: 1;
  min-width: 150px;
  margin-bottom: 10px;
}

.capabilities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between checkboxes */
}

.capability-column {
  flex: 1 1 calc(33% - 20px); /* Three columns */
  min-width: 200px; /* Minimum width for each column */
}

label {
  display: block; /* Ensure labels take up full width */
  margin: 5px 0; /* Space between checkboxes */
}
