:root {
  --primary-color: #300040;
  --background-light: #f4f4f4;
  --background-dark: #1e1e1e;
  --text-light: #333;
  --text-dark: #e0e0e0;
  --link-light: #1a73e8;
  --link-dark: #4285f4;
  --card-background-light: #ffffff;
  --card-background-dark: #2c2c2c;
  --border-radius: 12px;
  --box-shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
  /*
background:#300040;
color: #fff;
*/
  font-family: Ubuntu;
  min-height: 100vh;
  /* Set a minimum height of the body to cover the full viewport height */
  display: flex;
  flex-direction: column;
  /* Make the body a flex container with a column layout */

}

a {
  color: #eee;
}

.yellow {
  background-color: yellow;
  color: #000;
}

.yellow a {
  color: #333;
}

.logos {
  float: left;
}

.wallet {
  float: right;
  text-align: right;

}

.login {
  text-align: center;
}

.main-container {
  display: flex;
  flex-direction: row;
  /* Horizontal layout */
  justify-content: space-between;
  /* Space between columns */
}

.column2 {
  width: 48%;
  /* Adjust the width as needed */
  box-sizing: border-box;
  /* Ensure padding and border are included in the width */
}

.column70 {
  width: 68%;
  /* Adjust the width as needed */
  box-sizing: border-box;
}

.column3 {
  width: 30%;
  /* Adjust the width as needed */
  box-sizing: border-box;
}

.outagelist {
  background: #ffffff;
  width: 100%;
  overflow: auto;
}

.outagelist h3,
.outagelist p {
  padding: 10px;
}

.outagelist ul.outagelist li {
  float: left;
  padding: 5px;
  width: 150px;
  min-height: 70px;
  list-style: none;
}

/* Clear the float after the ul element */
.outagelist ul.outagelist::after {
  content: "";
  display: table;
  clear: both;
}

.high_severity,
.medium_severity,
.low_severity,
.dark-mode .high_severity,
.dark-mode .medium_severity,
.dark-mode .low_severity {
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.error_message,
.high_severity,
.error_message a,
.high_severity a {
  background: pink;
  margin: auto 0;
  color: #000000;
  padding: 5px;
  border: 1px solid red;
}

.low_severity,
.low_severity a {
  background: #eafce8;
  /* Light pastel green */
  margin: auto 0;
  color: #000000;
  padding: 5px;
  border: 1px solid green;
}

.medium_severity,
.medium_severity a {
  background: #fff6d9;
  /* Light pastel yellow */
  margin: auto 0;
  color: #000000;
  padding: 5px;
  border: 1px solid orange;
}

.dark-mode .high_severity,
.dark-mode .high_severity a {
  background: #400000;
  margin: auto 0;
  color: #FFBFBF;
  padding: 5px;
  border: 1px solid pink;
}

.dark-mode .low_severity,
.dark-mode .low_severity a {
  background: #004000;
  /* Darker pastel green */
  margin: auto 0;
  color: #BFFFBF;
  padding: 5px;
  border: 1px solid green;
}

.dark-mode .medium_severity,
.dark-mode .medium_severity a {
  background: #8C8C00;
  /* Darker pastel yellow */
  margin: auto 0;
  color: #FFFFBF;
  padding: 5px;
  border: 1px solid orange;
}

/* Base style for all messages */
.alert {
  padding: 12px 20px;
  margin: 10px 0;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Error messages: red background, white text */
.alert-error {
  background-color: #f44336;
  color: #fff;
  border: 1px solid #d32f2f;
}

/* Info messages: blue background, white text */
.alert-info {
  background-color: #2196f3;
  color: #fff;
  border: 1px solid #1976d2;
}

/* Debug messages: gray background, dark text */
.alert-debug {
  background-color: #e0e0e0;
  color: #333;
  border: 1px solid #bdbdbd;
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

/* Success messages: green background, white text */
.alert-success {
  background-color: #4caf50;
  color: #fff;
  border: 1px solid #388e3c;
}

/* Warning messages (optional): orange background */
.alert-warning {
  background-color: #ff9800;
  color: #fff;
  border: 1px solid #f57c00;
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  background: var(--card-background-light);
  color: var(--text-light);
  padding: 5px;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 4px 4px;
  flex-wrap: wrap;
}

.dark-mode .editor-toolbar {
  background: var(--card-background-dark);
  color: var(--text-dark);
}

.editor-toolbar button {
  padding: 4px 10px;
  font-family: sans-serif;
  font-size: 12px;
  cursor: pointer;
  background: var(--card-background-light);
  color: var(--text-light);
  border: 1px solid #bbb;
  border-radius: 3px;
}

.dark-mode .editor-toolbar button {
  background: var(--card-background-dark);
  color: var(--text-dark);
}

.editor-toolbar button:hover {
  background: var(--card-background-light);
  color: var(--text-light);
  border-color: #999;
}

.dark-mode .editor-toolbar button:hover {
  background: var(--card-background-dark);
  color: var(--text-dark);
}

.editor-area {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  font-family: monospace;
  background: var(--card-background-light);
  color: var(--text-light);
}

.dark-mode .editor-area {
  background: var(--card-background-dark);
  color: var(--text-dark);
}

@media (min-width: 767px) {

  /* Styles for navbar and top-right container */
  .navbar {
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    width: 100%;
  }

  .dark-mode .navbar {
    background-color: #3e3e3e;
  }

  /* Navigation Menu */

  .navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
  }

  .navbar li {
    margin-right: 10px;
    position: relative;
  }

  .navbar a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
  }

  .navbar ul ul {
    display: none;
    position: absolute;
    background-color: #f2f2f2;
    padding: 10px;
  }

  .dark-mode .navbar ul ul {
    background-color: #3e3e3e;
  }


  .navbar ul li:hover>ul {
    display: inherit;
  }

  .navbar ul li:hover>a {
    color: #ffffff;
  }

  .navbar ul ul li {
    width: 300px;
    float: none;
    display: list-item;
    position: relative;
  }

  .navbar .highlight {
    background: #cccccc;
  }

  .dark-mode .navbar .highlight {
    background-color: #666666;
  }


  .navbar ul li:hover,
  .navbar ul ul li:hover {
    background: #000000;
  }

  .navbar ul li a:hover,
  .navbar ul ul li a:hover {
    color: #ffffff;
  }

  .submenu {
    display: flex;
    list-style: none;
    padding: 0;
  }

  .submenu li {
    margin-right: 10px;
  }

  .submenu li a {
    text-decoration: none;
    color: #000;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 4px;
  }

  .submenu li a:hover {
    background-color: #000;
    color: #fff;
  }

  /* Additional styles for the secondary submenu */
  .secondary-submenu {
    display: none;
    list-style: none;
    padding: 0;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 10px;
    /* Adjust the positioning to overlap slightly with the previous menu item */
    left: -220px;
    /* Adjust the positioning to align with the left edge of the parent menu item */
    z-index: 2;
    /* Set a higher z-index to ensure it appears on top of the previous submenu */
  }

  .submenu li:hover .secondary-submenu {
    display: block;
  }

  .secondary-submenu li {
    /* Remove padding from the li elements */
    /* padding: 5px; */

    /* Center the text horizontally */
    text-align: left;
  }

  .secondary-submenu li a {
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    /* Add more padding to the submenu items */
  }

  .secondary-submenu li a:hover {
    background-color: #000;
    color: #fff;
  }

  .nav-icon {
    display: none;
  }

  .checkbox-list-container {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 500px;
    width: 30%;
    overflow-y: auto;
    padding: 10px;
  }

  .checkbox-item {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 2px 5px;
  }

  .checkbox-item:hover {
    background-color: #f0f0f0;
  }

  .dark-mode .checkbox-item:hover {
    background-color: #0a0a0a;
  }

  .checkbox-item.hidden {
    display: none;
  }

  .form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }

  .footer {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    font-size: 14px;
    margin-top: 20px;
  }

  .footer .footer-info {
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
  }

  .footer .dark-mode {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
  }

  .footer .language-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer .language-links a {
    margin: 0 5px;
    text-decoration: none;
    color: #fff;
  }

  .footer .ip-address {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
  }
}


/* Media query to show the mobile-friendly menu */
@media screen and (max-width: 768px) {

  .nav-icon {
    font-size: 36px;
  }

  /* Styles for the mobile menu toggle */
  .nav-toggle {
    display: block;
    text-align: right;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    text-decoration: none;
  }

  .nav-toggle:hover {
    color: #555;
  }

  /* Styles for the mobile menu */
  .navbar {
    display: none;
    background-color: #333;
    color: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1;
  }

  /* Updated class name to match JavaScript toggle */
  .navbar.active {
    display: block;
  }

  .navbar ul {
    list-style-type: none;
    padding: 0;
  }

  .navbar li {
    padding: 10px;
    border-bottom: 1px solid #555;
  }

  .navbar a {
    text-decoration: none;
    color: #fff;
  }

  /* Styles for submenu items */
  .navbar ul ul {
    display: none;
    position: relative;
    right: 0;
    top: 0;
    background-color: #444;
  }

  /* Updated class name to match JavaScript toggle */
  .navbar ul ul.active {
    display: block;
  }
}

/* Pagination */
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  background-color: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination .active {
  background-color: #007bff;
  color: #fff;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
}

.spacer {
  height: 250px;

}

/* Tabs */
.tabs {
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab {
  padding: 10px;
  background-color: #f2f2f2;
  color: #333;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  transition: background-color 0.3s ease;
}

.tab:hover {
  background-color: #ddd;
}

.tab.active {
  background-color: #007bff;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Style for the tab links */
ul.tabs li {
  display: inline-block;
  margin-right: 5px;
  /* Adjust as needed */
}

ul.tabs li a {
  display: block;
  padding: 10px 20px;
  /* Adjust the padding as needed */
  background-color: #000;
  color: #eee;
  text-decoration: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border: 1px solid #ccc;
  border-bottom: none;
}

ul.tabs li a:hover {
  background-color: #333;
}

/* Style for the active tab link */
ul.tabs li.active a {
  background-color: #007bff;
  /* Your active tab color */
  color: #fff;
  /* Your active tab text color */
  border-color: #007bff;
  /* Your active tab border color */
}


/* Form styles */
.form-container {
  max-width: 75%;
  margin: 0 auto;
  padding: 20px;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-label {
  flex-basis: 30%;
  /* Adjust the width of the label to your preference */
  font-weight: bold;
}

.form-input {
  flex: 1;
  /* Let the input take up the remaining space */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-button {
  background-color: #300040;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-button:hover {
  background-color: #000000;
  /* A slightly darker shade when hovering */
}

/* Modern Filter Bar Styles */
.filter-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.dark-mode .filter-section {
  background-color: var(--card-background-dark);
  box-shadow: var(--box-shadow-dark);
  border-color: #444;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  /* Responsive: minimum 180px width */
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.dark-mode .filter-label {
  color: var(--text-dark);
}

.filter-input {
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-btn {
  background-color: #3b82f6;
  color: white;
  font-weight: 600;
  padding: 0 24px;
  height: 38px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: auto;
}

.filter-btn:hover {
  background-color: #2563eb;
}

/* Action Dropdown Styles */
.action-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 8px 0;
}

.dark-mode .dropdown-content {
  background-color: var(--card-background-dark);
  box-shadow: var(--box-shadow-dark);
  border-color: #555;
}

.dropdown-content a {
  color: #334155;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
}

.dark-mode .dropdown-content a {
  color: var(--text-dark);
}

.dropdown-content a:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.action-dropdown:hover .dropdown-content {
  display: block;
}

/* THE FIX: Drop-up logic */
.action-dropdown.drop-up .dropdown-content {
  top: auto;
  bottom: 100%;
  margin-bottom: 5px;
}

.dropbtn {
  background-color: #ffffff;
  color: #475569;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  border-radius: 6px;
}

.dark-mode .dropbtn {
  background: #444;
  color: #eee;
  border-color: #666;
}

.dropbtn:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.status-badge {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

.status-urgent {
  color: #dc2626;
}

/* Main content styles */
.main-content {
  flex: 1;
  /* Allow the main content to take up the remaining space */
  padding: 20px;
}

.invoice {
  width: 80%;
  margin: 20px auto;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #f9f9f9;
}

.dark-mode .invoice {
  background-color: #0c0c0c;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.whitelabel-info {
  flex: 1;
}

.customer-info {
  flex: 1;
  text-align: right;
}

.invoice-header h2 {
  margin: 0;
}

.invoice-details {
  margin-bottom: 20px;
}

.invoice-items {
  width: 100%;
  border-collapse: collapse;
}

.invoice-items th,
.invoice-items td {
  border: 1px solid #ccc;
  padding: 8px;
}

.invoice-total {
  margin-top: 20px;
  text-align: right;
}

.invoice-footer {
  margin-top: 20px;
}

.invoice-footer table {
  width: 100%;
  border-top: 1px solid #000;
  border-collapse: collapse;
}

.invoice-footer td {
  padding: 5px 10px;
  text-align: right;
}

.invoice-footer td:first-child {
  text-align: left;
}

.addon-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.addon-section {
  flex: 1;
  min-width: 200px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  /*        background-color: #f9f9f9;*/
}

.addon-section h3 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#payment-element {
  margin-bottom: 24px;
}

/* Buttons and links */
button {
  background: #5469d4;
  font-family: Arial, sans-serif;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  /*width: 100%;*/
  min-width: 50px;
  max-width: 100%;
}

button:hover {
  filter: contrast(115%);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #4CAF50;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}

.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}

.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5469d4;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}

.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5469d4;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  form {
    width: 80vw;
    min-width: initial;
  }
}