/* styles.css */

/* General Body Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    color: #212529;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}

/* Core Layout Container */
.container {
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header and Footer Styles */
.site-header,
.site-footer {
    background-color: #e9ecef;
    padding-top: 5px;
    padding-bottom: 20px;
}

/* Flexbox layout for logo + tagline */
.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
/* Logo scaling */
.header-logo {
max-height: 85px;
height: auto;
width: auto;
margin-bottom: -14px;
margin-left: -20px; /* Adjust visually if logo feels offset */
}

/* Tagline appearance */
.site-tagline {
font-size: 1.5rem;
font-weight: 550;
color: #333;
margin-left: 12px;  /* Align text with logo visually */
}

@media (max-width: 768px) {
    .site-header,
    .site-footer {
        padding: 10px;
    }
}

/* Main Content Styles */
.site-main {
    padding: 2rem 0;
}

/* Headings and Text */
h1, h2, h3, h4 {
    color: #333;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: #555;
    text-align: justify;
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #0056b3;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #004494;
    text-decoration: none;
}

/* Buttons */
button,
input[type="submit"],
.button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1em;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Forms */
fieldset {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    background-color: #fff;
}

legend {
    font-weight: 600;
    margin-bottom: -.25rem;
    font-size: 1.1rem;
}

fieldset p {
    margin: 0.25rem 0;
}

input[type="text"],
input[type="date"],
select {
    padding: 0.4em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    input[type="text"],
    input[type="date"],
    select {
        max-width: 300px;
    }
}


/* Checkbox Grid */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-grid-column {
    flex: 1 1 220px;
    min-width: 180px;
}

/* Plot Section Tweaks */
.plot-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.plot-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Accessibility & Focus */
:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Utility Classes */
.text-large {
    font-size: 1.2rem;
}

.text-muted {
    color: #6c757d;
}

.hr-divider {
    margin: 2rem 0;
    border-top: 1px solid #ccc;
}

.status-pill {
    display: inline-block;
    margin-left: 0.4em;
    margin-right: 0.6em;
    font-size: 0.8rem;  /* slightly larger for emoji clarity */
}

a.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff !important;
    border: none;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1em;
}

a.btn:hover,
a.btn:focus {
    background-color: #0056b3;
    text-decoration: none;
}

.sensor-channel-label {
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Litepicker calendar responsiveness fix */
.litepicker {
    width: 100% !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    z-index: 9999 !important;
  }
  
  @media (max-width: 768px) {
    .litepicker {
      transform: translateX(0) !important;
      width: 95vw !important;
      left: 2.5vw !important;
    }
  }

.date-range-input {
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
  padding: 0.5em;
  box-sizing: border-box;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
    justify-content: flex-start;
  }
  
  .action-buttons > * {
    flex: 1 0 auto;
    white-space: nowrap;
    padding: 0.6em 1.2em;
    text-align: center;
  }
  
  @media (max-width: 600px) {
    .action-buttons > * {
      flex: 1 1 100%;
    }
  }