

/* Basic Structure and Font Settings */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  background: linear-gradient(135deg, #b342b3, #b1ecf8);
  background-attachment: fixed;
  font-family: "Roboto", Arial, sans-serif;
}

/* Headings and Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: bold;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

p,
td,
th,
span,
div {
  font-family: 'Rubik', sans-serif;
  font-weight: normal;
}

/* Sidebar Styling */
.dashboard-sidebar {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 20%;
}

/* Sidebar Links */
.dashboard-sidebar .menu a {
  color: #020202;
  font-size: 1.1em;
  margin: 10px 0;
  display: block;
}

/* Dashboard Content */
.dashboard-content {
  padding: 20px;
}

/* Button Styling */
.button {
  font-weight: bold;
  /* Make button labels bold */
  border-radius: 4px;
}

.button.small-radius {
  border-radius: 4px !important;
}

/* Table Styling */
.custom-table {
  font-size: 12px;
  word-wrap: break-word;
  table-layout: auto;
  width: 100%;
  background-color: #ffffff;
  border-collapse: collapse;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle drop shadow */
  overflow: hidden;
  /* Ensure rounded corners on all sides */
}

/* Table Header */
.custom-table th {
  font-weight: bold;
  /* Bold header text */
  font-size: 14px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #e1e4e8;
  background-color: #f3f4f6;
  /* Light background for header */
}

/* Table Data Cells */
.custom-table td {
  font-weight: normal;
  /* Regular weight for data cells */
  padding: 8px 12px;
  border: 1px solid #e1e4e8;
  text-align: left;
}

/* Table Column Widths */

.custom-table td.board {
  width: 25%;
}


.custom-table td.macAddress {
  width: 20%;
}


.custom-table td.temperature {
  width: 20%;
}


.custom-table td.timestamp {
  width: 35%;
}


/* Callout for Status Messages */
.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-top: 1rem;
}

/* Container, Header, and Custom Classes */
.header-container,
.header-image {
  background-color: transparent;
}

.custom-text {
  color: #000;
}

.neg-margin {
  margin-top: -2em;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
  }
}

/* Center-aligned Title */
.title-align {
  text-align: center;
  vertical-align: top;
}

/* Sidebar Menu Hover Effect */
.dashboard-sidebar .menu a {
  color: #333;
  /* Default text color */
  font-size: 1.1em;
  display: block;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dashboard-sidebar .menu a:hover {
  background-color: #08131f;
  /* Background color on hover */
  color: #fff;
  /* Text color on hover */
  text-decoration: none;
  /* Remove underline */
  border-radius: 4px;
  /* Optional rounded corners */
}

/* Sidebar Menu Styles */
.callout.primary .menu a {
  color: #333;
  /* Default text color */
  font-size: 1.1em;
  display: flex;
  align-items: center;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  /* Optional rounded corners */
}

/* Hover Effect */
.callout.primary .menu a:hover {
  background-color: #4a90e2;
  /* Background color on hover */
  color: #fff;
  /* Text color on hover */
  text-decoration: none;
  /* Remove underline */
}

/* Optional: Adjust icon and text alignment for a balanced look */
.callout.primary .menu a i {
  margin-right: 8px;
  /* Space between icon and text */
}

/* Style for the sidebar wrapper */
.callout.primary {
  border-radius: 12px;
  /* Rounds the corners */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  /* Soft shadow for depth */
  padding: 15px;
  /* Adds some padding inside the div */
  background-color: #ffffff;
  /* Background color for better contrast */
}

/* Style for individual menu items */
.vertical.menu>li>a {
  padding: 12px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  /* Rounds the corners of each menu item */
  transition: background-color 0.3s ease;
  /* Smooth transition on hover */
  color: #333333;
  /* Darker text for better readability */
}

/* Hover effect for menu items */
.vertical.menu>li>a:hover {
  background-color: #f0f8ff;
  /* Light blue hover background */
  color: #007acc;
  /* Hover text color */
}

/* Optional: style icons within the menu items for better spacing */
.vertical.menu>li>a i {
  margin-right: 8px;
  font-size: 1.2em;
  /* Slightly larger icon size */
  color: inherit;
}

/* Base styles for the alert container */
#alertContainer {
  padding: 15px;
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Drop shadow */
  font-weight: bold;
  color: #ffffff;
  /* Text color for both types */
  margin-bottom: 15px;
  display: none;
  /* Hidden by default */
}

/* Success alert style */
#alertContainer.success {
  background-color: #28a745;
  /* More intense green */
  border: 1px solid #218838;
  text-align: center;
}

/* Error alert style */
#alertContainer.alert {
  background-color: #dc3545;
  /* More intense red */
  border: 1px solid #c82333;
  text-align: center;
}

/* Transition for smooth fade-in effect */
#alertContainer.show {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

/* Keyframes for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Base text color */
body,
p,
td,
th,
span,
div {
  color: #1e3a5f;
  /* Dark blue */
  font-family: 'Rubik', sans-serif;
  /* Optional: consistent font */
}

/* Heading Styles with Drop Shadows */
h1,
h2,
h4,
strong {
  color: #1e3a5f;
  /* Dark blue */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  /* Drop shadow effect */
  font-weight: bold;
}

/* Specific Font Sizes for Headings */
h1 {
  font-size: 24px;
  /* Adjust as needed */
}

h2 {
  font-size: 18px;
  /* Adjust as needed */
}

/* Optional Link Styles to Match Dark Blue Theme */
a {
  color: #1e3a5f;
  /* Dark blue for links */
  text-decoration: none;
}

a:hover {
  color: #16304a;
  /* Darker blue on hover */
  text-decoration: underline;
}

/* Container for the password input and eye icon */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Style for the password input to accommodate icon padding */
.password-container input[type="password"] {
  padding-right: 2.5em;
  /* Space for the eye icon */
}

/* Positioning the eye icon inside the input field */
.toggle-password {
  position: absolute;
  right: 0.75em;
  top: 0.75em;
  cursor: pointer;
  color: #888;
  /* Light gray color for the icon */
}

.toggle-password:hover {
  color: #333;
  /* Darker color on hover */
}

/* CSS for alert container */
.callout {
  transition: opacity 1s ease-out;
  /* Smooth fade-out transition */
}

/* Fade-out class for hiding alerts */
.fade-out {
  opacity: 0;
}

.button {
  display: inline-block;
  margin: 5px 0;
  width: 100%;
  /* Full-width for sidebar alignment */
  text-align: center;
}

.button.primary {
  background-color: #007BFF;
  color: white;
}

.button.alert {
  background-color: #FF4136;
  color: white;
}

#prevPage,
#nextPage {
  width: 25%;
  padding: 10px;
  /* Optional: Adjust padding for better aesthetics */
  margin: 5px;
  /* Optional: Add spacing between buttons */
  text-align: center;
  border: none;
  /* Optional: Remove border for a cleaner look */
  border-radius: 5px;
  /* Add rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* Add a subtle shadow effect */
  font-size: 16px;
  /* Adjust font size */
  background-color: #0078D4;
  /* Set background color */
  color: #ffffff;
  /* Set text color */
  cursor: pointer;
  /* Show pointer on hover */
  transition: background-color 0.3s ease, transform 0.2s ease;
  /* Smooth transition effects */
}

#prevPage:hover,
#nextPage:hover {
  background-color: #005A9E;
  /* Darker shade on hover */
  transform: scale(1.05);
  /* Slight zoom effect on hover */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Ensure the body takes at least the full viewport height */
  margin: 0;
  width: 100%;
}

main {
  flex: 1;
  /* Allows the main content to expand, pushing the footer to the bottom */
}

footer {

  color: #ecf0f1;
  /* Light text color for better contrast */
  text-align: center;
  /* Center the footer content */
  padding: 10px 0;
  /* Add some padding for a better look */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for separation */
  position: relative;
  /* Ensures it stays at the bottom of the content */
  width: 100%;
  /* Full width */
  z-index: 10;
  /* Ensure it stays above other elements if necessary */
}


/* Container around the entire form */
#settingsForm {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin: 2rem auto;
  /* center & give breathing room */
}

/* Each fieldset section */
#settingsForm fieldset {
  border: 1px solid #e1e4e8;
  /* matches table border */
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: #fdfdfe;
  /* very light off-white */
}

/* Legend styling */
#settingsForm legend {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e3a5f;
  /* your dark-blue heading color */
  padding: 0 0.5rem;
}

/* Labels & inputs */
#settingsForm label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #1e3a5f;
}

/* Text, URL & password inputs */
#settingsForm label input[type="text"],
#settingsForm label input[type="url"],
#settingsForm label input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #333333;
}

/* Checkbox spacing */
#settingsForm label input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

/* Make the submit button full-width and spaced */
#settingsForm button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
}

/* Responsive two-column layout on larger screens */
@media (min-width: 768px) {
  #settingsForm fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* by default each label/input pair takes ~45% of width */
  #settingsForm label {
    flex: 1 1 45%;
  }

  /* if you need a field to span the full width, add .full-width to its <label> */
  #settingsForm label.full-width {
    flex: 1 1 100%;
  }
}

#selectedCount {
  color: #555;
}

/* Container for action controls (counter + delete button) */
.upload-controls {
  background-color: #f7f7f7;
  border: 2px solid #e57373;
  border-radius: 6px;
  padding: 10px 15px;
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Selected messages count */
#selectedCount {
  color: #444;
  font-weight: 600;
  font-size: 1rem;
}

/* Button hover state */
.upload-controls .button.alert:hover {
  background-color: #c62828;
  color: #fff;
}

/* Table adjustments for better alignment */
.custom-table th,
.custom-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.custom-table td:nth-last-child(2),
.custom-table th:nth-last-child(2) {
  text-align: center;
}

.custom-table td:last-child,
.custom-table th:last-child {
  text-align: center;
}

/* Disabled button style */
.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bulk actions container: 50% width, buttons aligned right with spacing */
.cell-btn.text-right {
  width: 40%;
  margin-left: auto;
  /* push to the right if it's in a row */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  /* space between buttons */
}

/* (Optional fallback if you don't want to rely on flex gap) */
.cell.text-right .button+.button {
  margin-left: 0.75rem;
}

.stat-number {
  font-size: 3 rem;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

/* Optional: wrapper for the grid that holds all stat cards */
.stats-cards {
  background-color: transparent;
  border: none;
  border-radius: 6px;
}

/* The card itself */
.callout.stat-card {
  background: linear-gradient(135deg, #b564c5, #1f5aa8);
  /* dark blue */
  border: none;
  /* remove Foundation border */
  border-radius: 6px;
  /* rounded corners */
  color: #EAF4FF;
  /* light text for contrast */
  padding: 0.2rem 0.25rem;
  box-shadow: 0 6px 16px rgba(41, 40, 40, 0.308);
}

/* Heading: smaller, subtle */
.callout.stat-card h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(250, 250, 250, 0.9);
  height: 3rem;
}

/* Big number */
.callout.stat-card .stat-number {
  margin: 0;
  line-height: 1;
  font-weight: 700;
  font-size: 1.5rem;
  /* adjust as you like */
  color: #F7FBFF;
  padding-bottom: 2px;
  padding-right: 2px;
}

/* Small-screen tweak */
@media (max-width: 640px) {
  .callout.stat-card .stat-number {
    font-size: 1.75rem;
  }
}


.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
}

.form-hint {
  color: #666;
}

.form-hint.is-invalid {
  color: #cc4b37;
}

/* Foundation alert-ish red */
body {
  padding: 2rem;
  background-color: #f3f3f3;
}

/* Custom styles for the info card */
.custom-info-card .accordion {
  /* Applying your specified gradient background */
  background: linear-gradient(135deg, #b564c5, #1f5aa8);
  border-radius: 5px;
  border: none;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(41, 40, 40, 0.308);
  /* Ensures the gradient corners are rounded */
}

.custom-info-card .accordion-item {
  border: none;
  /* Removes default borders */
}

.custom-info-card .accordion-title {
  color: #ffffff;
  /* White text for better contrast on the gradient */
  font-weight: bold;
  font-size: 1.1em;
  border: none;
  display: flex;
  /* Aligns icon and text */
  align-items: center;
  gap: 10px;
  /* Adds space between the icon and the title text */
  transition: background-color 0.3s ease;
}

/* Change title background on hover for better user feedback */
.custom-info-card .accordion-title:hover,
.custom-info-card .accordion-title:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Style for the content area */
.custom-info-card .accordion-content {
  background-color: #fefefe;
  /* A light background for readable content */
  color: #333;
  /* Dark text color as requested in your example */
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  /* A subtle separator line */
}

/* Override Foundation's default ::before and ::after pseudo-elements for the icon */
.custom-info-card .accordion-title::before,
.custom-info-card .accordion-title::after {
  display: none;
}
/* Spinner Overlay styles */
.spinner-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Sit on top of the page content */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    z-index: 9999; /* Make sure it's on top */
    justify-content: center;
    align-items: center;
}

/* When the overlay should be shown */
.spinner-overlay.show {
    display: flex;
}

/* The actual spinner element */
.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* The spinning animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}