/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
    --white-color:                #FFFFFF;
    --primary-color:              #FF4400;
    --section-bg-color:           #f0f8ff;
    --dark-color:                 #000000;
    --grey-color:                 #d0d1d1;
    --p-color:                    #717275;
  
    --body-font-family:           'Inter', sans-serif;
  
    --h5-font-size:               24px;
    --p-font-size:                20px;
    --copyright-text-font-size:   16px;
    --product-link-font-size:     14px;
    --custom-link-font-size:      12px;
  
    --font-weight-thin:           100;
    --font-weight-light:          300;
    --font-weight-normal:         400;
    --font-weight-bold:           700;
    --font-weight-black:          900;
}

/* Reset default styles */
body, ul, li, form, input, select, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1,
h2 {
  font-weight: var(--font-weight-black);
}

h1 {
  font-size: 64px;
  line-height: normal;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 36px;
}

h4 {
  font-size: 32px;
}

h5 {
  font-size: 24px;
}

h6 {
  font-size: 20px;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

a, button {
  touch-action: manipulation;
  transition: all 0.3s;
  color: var(--primary-color);
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

b, strong {
  font-weight: var(--font-weight-bold);
}

/*---------------------------------------
  HTML & BODY
-----------------------------------------*/
body, html {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

.sub {
  font-size: 0.5em; /* Smaller "2" */
  vertical-align: sub;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/*---------------------------------------
  Preloader
-----------------------------------------*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: var(--white-color);
}
  
.spinner {
  border: 1px solid transparent;
  border-radius: 5px;
  position: relative;
}
  
.spinner::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -23px;
  border-radius: 50%;
  border: 1px solid #959595;
  border-top-color: var(--white-color);
  animation: spinner 0.9s linear infinite;
}
  
@keyframes spinner {
  to { transform: rotate(360deg); }
}

/*---------------------------------------
  BODY BACKGROUND & CONTAINER
-----------------------------------------*/
body {
  font-family: var(--body-font-family);
  background-color: var(--grey-color);
  color: #333;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: linear-gradient(245deg, #8f8e8e, #FFFFFF);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  flex: 1;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}

iframe {
  width: 100%;
  height: 650px;
  border: none;
  margin-bottom: 20px;
}

/*---------------------------------------
  Navigation
-----------------------------------------*/
.navbar {
  background: var(--white-color);
  padding: 10px 0;
  z-index: 2;
  will-change: transform;
  transition: transform 300ms linear;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
  
.navbar.headroom--not-top {
  padding: 20px 0;
}
  
.headroom--pinned {
  transform: translate(0, 0);
}
  
.headroom--unpinned {
  transform: translate(0, -150%);
}
  
.navbar-brand {
  color: var(--dark-color);
  font-size: 24px;
  font-weight: var(--font-weight-light);
  margin: 0;
  padding: 0;
}
  
.colored-brand {
  color: var(--primary-color);
  transition: color 0.5s ease 0.1s;
}
  
.colored-brand2 {
  color: var(--dark-color);
  transition: color 0.5s ease 0.1s;
}
  
.navbar-brand:hover .colored-brand {
  color: var(--hover-color-brand);
}
  
.navbar-brand:hover .colored-brand2 {
  color: var(--hover-color-brand2);
}
  
.navbar-expand-lg .navbar-nav .nav-link {
  display: inline-block;
  padding: 0;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}
  
.nav-link {
  color: var(--p-color);
  font-size: 16px;
  position: relative;
}
  
.navbar .nav-link::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grey-color);
  content: '';
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
  
.navbar .nav-link.active::after, 
.navbar .nav-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}
  
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--primary-color);
}
  
.nav-link:focus, 
.nav-link:hover {
  color: var(--p-color);
}
  
.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}
  
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
  
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}
  
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  top: 0;
}
  
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}
  
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}
  
.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}
  
.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}
  
.navbar-toggler .navbar-toggler-icon:before {
  top: -8px;
}
  
.navbar-toggler .navbar-toggler-icon:after {
  top: 8px;
}
  
/*---------------------------------------
  Mobile Navbar Fixes
-----------------------------------------*/
@media (max-width: 991.98px) {
  /* Navbar container */
  .navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Brand stays left */
  .navbar-brand {
    font-size: 16px;
    order: 1;
    flex: 0 0 auto;
    margin-right: auto;
  }
  
  /* Hamburger button stays right */
  .navbar-toggler {
    order: 2;
    flex: 0 0 auto;
    border: none;
    padding: 8px;
  }
  
  /* Collapse takes full width below */
  .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    flex-grow: 1;
  }
  
  /* All nav items stack vertically */
  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    padding: 15px 0;
  }
  
  /* Remove margin/spacing that misaligns items */
  .navbar-collapse .navbar-nav.me-auto,
  .navbar-collapse .navbar-nav.align-items-center {
    margin: 0 !important;
  }
  
  /* Each nav item full width, left aligned */
  .navbar-collapse .nav-item {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }
  
  /* Nav links left aligned with consistent padding */
  .navbar-collapse .nav-link {
    display: block;
    width: 100%;
    padding: 12px 15px !important;
    text-align: left;
    font-size: 15px;
    color: #333;
  }
  
  .navbar-collapse .nav-link:hover {
    background-color: #f8f9fa;
  }
  
  /* Language selector container */
  .navbar-collapse .d-flex {
    width: 100%;
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
  }
  
  .navbar-collapse select.form-select {
    width: 100%;
    max-width: none;
  }
  
  /* Separator between main nav and auth nav */
  .navbar-collapse .navbar-nav + .navbar-nav {
    margin-top: 5px !important;
    padding-top: 5px;
    border-top: 2px solid #e9ecef;
  }
  
  /* Auth container spacing */
  .navbar-collapse #navAuthContainer {
    padding-top: 5px;
    border-top: 2px solid #e9ecef;
  }
}

@media (max-width: 575px) {
  .navbar-brand {
    font-size: 14px;
  }
  
  .navbar-collapse .nav-link {
    font-size: 14px;
    padding: 10px 12px !important;
  }
  
  .main-container {
    padding: 10px;
  }
}

/*---------------------------------------
  Row/Column Layout
-----------------------------------------*/
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 15px;
}
@media (max-width: 767.98px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/*---------------------------------------
  Button and Form Elements
-----------------------------------------*/
.button-container {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  color: var(--primary-color);
}

/* Calculator specific button styles */
.button-container .btn,
#calculator .btn {
  width: 130px;
  height: 60px;
  color: #fff;
  border-radius: 5px;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0 rgba(255,255,255,0.5),
              7px 7px 20px 0 rgba(0,0,0,0.1),
              4px 4px 5px 0 rgba(0,0,0,0.1);
  outline: none;
}

/* Calculator form buttons */
#calculator button,
.button-container button,
.mix-card button {
  background-color: #bbb;
  color: #333;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  border-radius: 3px;
}

#calculator button:hover,
.button-container button:hover,
.mix-card button:hover {
  background-color: #999;
}

/*---------------------------------------
  Sand Container
-----------------------------------------*/
.sand-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.sand-container > div {
  flex: 1;
  min-width: 0;
}

.sand-container label {
  display: block;
  margin-bottom: 5px;
}

.sand-container .form-control {
  width: 100%;
  margin-bottom: 10px;
}

@media (max-width: 1000px) {
  .sand-container {
    flex-direction: column;
  }
  .sand-container > div {
    flex: none;
  }
  .sand-container .form-control {
    margin-bottom: 15px;
  }
}

/*---------------------------------------
  Custom Circle Images
-----------------------------------------*/
.custom-circle-image {
  border-radius: 100px;
  width: 55px;
  height: 55px;
}
.custom-circle-image.team-image {
  width: 85px;
  height: 85px;
}

/*---------------------------------------
  Skewed Background
-----------------------------------------*/
.skewed-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, #000000, #FFFFFF);
  transform: skewY(-5deg);
  transform-origin: top left;
  z-index: -1;
}

/*---------------------------------------
  Main Container and Footer
-----------------------------------------*/
.main-container {
  position: relative;
  z-index: 1;
  padding-top: 50px;
}

footer {
  background: #343a40;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  bottom: 0;
  opacity: 0.8;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/*---------------------------------------
  PDF Container
-----------------------------------------*/
.pdf-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.pdf-container object {
  width: 100%;
  height: 100vh;
}

/*---------------------------------------
  Custom Card Header
-----------------------------------------*/
.custom-card-header {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 1rem;
  position: relative;
}

@media (max-width: 767px) {
  .custom-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-card-header label {
    margin-bottom: 0.5rem;
  }
  .custom-card-header .form-control {
    width: 100%;
    max-width: none;
  }
  .result-container {
    font-size: 0.95rem;
  }
  .result-container {
    font-size: 0.95rem;
  }
}
/*---------------------------------------
  Mix Container Layout Adjustments
-----------------------------------------*/
/* Responsive Mix Cards Layout */
.mix-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* Each mix card takes 50% width when two are present */
  .mix-container > div {
 
    max-width: 100%;
  }
  
  /* If only one mix card is present, center it and make it full width */
  .mix-container > div:only-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  /* Clear any floats or flex issues inside the mix container */
.mix-container::after {
    content: "";
    display: table;
    clear: both;
  }
  /* On mobile devices, stack the mix cards vertically */
  @media (max-width: 767.98px) {
    .mix-container > div {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  
  /* Ensure the buttons container is always below the mix container */
  .button-container {
    clear: both;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    display: block;
  }
  
/* Mix Card Header Styling */
.card-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #607d8b, #455a64);
  color: white;
  font-weight: 500;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
  position: relative;
}

.mix-name-input {
  background: transparent;
  border: none;
  color: white;
  font-weight: 500;
  width: 100%;
  padding: 0;
  font-size: 18px;
  transition: all 0.2s ease;
}

.mix-name-input:focus {
  outline: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.mix-name-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* .card-header::after removed - no longer needed
.card-header::after {
  content: '✎';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-header:hover::after {
  opacity: 1;
}
*/

/* Dynamic Aggregates Styling */
.aggregates-container {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  min-height: 60px;
  position: relative;
}

.aggregates-container.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-style: italic;
}

.aggregates-container.empty::before {
  content: "Nav pievienotu rupjo";
}

.aggregate-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  position: relative;
}

.aggregate-item:last-child {
  margin-bottom: 0;
}

.aggregate-select {
  flex: 2;
  min-width: 120px;
}

.aggregate-amount {
  flex: 1;
  min-width: 80px;
}

.remove-aggregate-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.remove-aggregate-btn:hover {
  background: #c82333;
}

.aggregate-label {
  font-size: 0.875rem;
  color: #495057;
  margin-right: 0.25rem;
  white-space: nowrap;
}

/* Responsive design for aggregates */
@media (max-width: 576px) {
  .aggregate-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .aggregate-select,
  .aggregate-amount {
    width: 100%;
  }
  
  .remove-aggregate-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
  }
}

/*---------------------------------------
  MINERAL MATERIALS DYNAMIC SECTION               
-----------------------------------------*/
.mineral-material-row {
  transition: all 0.3s ease;
}

.mineral-material-row .d-flex {
  align-items: center;
}

.mineral-material-select {
  min-width: 150px;
}

.mineral-material-kg {
  min-width: 100px;
}

.remove-mineral-btn {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  transition: all 0.2s ease;
  background-color: #f1f1f1 !important;
  border: 1px solid #ccc !important;
  color: #888 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.remove-mineral-btn i {
  font-size: 0.6rem !important;
  line-height: 1 !important;
}

.remove-mineral-btn:hover {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
  transform: scale(1.1);
}

#addMineralMaterial1,
#addMineralMaterial2 {
  transition: all 0.2s ease;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  line-height: 1.3;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  background-color: #f8f9fa !important;
  border: 1px dashed #adb5bd !important;
  color: #6c757d !important;
  border-radius: 4px;
  text-align: center;
  box-sizing: border-box;
}

#addMineralMaterial1:hover,
#addMineralMaterial2:hover {
  background-color: #e9ecef !important;
  border-color: #6c757d !important;
  color: #495057 !important;
}

/* Responsive design for mineral materials */
@media (max-width: 576px) {
  .mineral-material-row .d-flex {
    flex-wrap: wrap;
  }
  
  .mineral-material-select {
    flex: 1 1 100% !important;
    margin-bottom: 0.5rem;
  }
  
  .mineral-material-kg {
    flex: 1;
    width: auto !important;
  }
}

/*---------------------------------------
  PDF EXPORT BUTTON               
-----------------------------------------*/
#exportPdfButton {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  width: auto !important;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}

#exportPdfButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  color: white;
}

#exportPdfButton i {
  margin-right: 0.5rem;
}

#pdfExportContainer {
  margin-top: 1.5rem;
  padding: 1rem;
  animation: fadeIn 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
}

.modal-backdrop.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal-backdrop.show {
  opacity: 1;
}

#premiumModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

#premiumModal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#premiumModal .modal-dialog {
  position: relative;
  width: auto;
  max-width: 450px;
  margin: 1.75rem auto;
  z-index: 1055;
}

#premiumModal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  background-clip: padding-box;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1060;
}

#premiumModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 15px 15px 0 0;
}

#premiumModal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

#premiumModal .btn-close {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

#premiumModal .btn-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

#premiumModal .btn-close i {
  color: white;
  font-size: 1rem;
}

#premiumModal .modal-body {
  padding: 2rem;
  background: #fff;
  border-radius: 0 0 15px 15px;
}

/* Premium modal button hover effects */
#premiumModal .modal-body a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#premiumModal .modal-body button:hover {
  background: #4b5563 !important;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Ensure body doesn't scroll when modal is open */
body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Mobile responsive for premium modal */
@media (max-width: 576px) {
  #premiumModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  #premiumModal .modal-body {
    padding: 1.5rem;
  }
}

/* CO2 Mode Switch Styles */
.co2-mode-switch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.co2-mode-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  min-height: 18px;
  line-height: 1.2;
}

.co2-mode-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 0;
}

.co2-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.co2-mode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.co2-mode-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.co2-mode-switch input:checked + .co2-mode-slider {
  background-color: #0d6efd;
}

.co2-mode-switch input:checked + .co2-mode-slider:before {
  transform: translateX(24px);
}

.co2-mode-switch:hover .co2-mode-slider {
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}
