/**
* HISTORY
*/

.history-inner {
  padding: 1.25em 0 3em;
  min-height: 101vh;
  /* Stop scrollbar pop on load */
}

.section-title,
.history-controls .inner,
.history-headings,
.history-list,
.history-skeleton.page-skeleton {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100vw;
}

.section-title h1 {
  margin: 0;
}

/* Match background and card style */
body.template-history {
  background: #f7f9fb;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Make main content and all sections full width */
main.content-wrap {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

.history-inner.content-inner {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100vw;
  min-height: 100vh;
}

/* Section Title */
.section-title h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #f2f6fa;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #96d228;
  display: inline-block;
  padding-bottom: 8px;
}

/* Controls */
.history-controls {
  padding: 1em 0;
  margin-bottom: 1em;
}

.history-controls .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
}

.history-controls button {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-align: left;
  background-color: var(--main-blue);
  /* Was green, now blue */
  color: var(--main-white);
  padding: .5em 1em;
  margin: .5em .5em 0 0;
  border-radius: 100em;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color .3s ease,
    filter .3s ease;
}

.history-controls button:last-child {
  margin-right: 0;
}

.history-controls button:hover {
  background-color: var(--main-green);
  /* Was blue, now green */
  color: var(--main-white);
}

.history-controls button.is-loading {
  opacity: 0.5;
  pointer-events: none;
  color: transparent;
}

.history-controls button svg {
  margin-right: .5em;
}

.history-controls button svg.calendar {
  margin-right: 0;
}

.history-controls button svg.loading {
  display: none;
  font-size: 1.5em;
  width: 1em;
  height: 1em;
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--accent-dark);
  margin: -0.5em 0 0 -0.5em;
  animation: spin .75s linear infinite;
}

.history-controls button.is-loading svg.loading {
  display: block;
}

.history-controls .date-toggle {
  min-width: 14em;
}

.history-controls .date-toggle span {
  text-transform: capitalize;
}

.history-controls .date-toggle.order-asc svg.arrow {
  transform: rotate(180deg);
}

.history-controls .expand-toggle {
  width: 8em;
  justify-content: center;
}

.history-controls input {
  display: block;
  width: 100%;
  padding: .75em 3em .75em 2.75em;
  margin: 0;
  border-radius: var(--global-radius);
  border: 2px solid #ddd;
  box-shadow: none;
  -webkit-appearance: none;
  transition: border .2s ease;
}

.history-controls input:focus {
  outline: none;
  border-color: var(--color-neutral);
}

.history-filter-name {
  position: relative;
  width: 100%;
  margin: .5em 0;
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f6fa;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid #e3e8ee;
}

.history-filter-name svg {
  position: absolute;
  width: 1em;
  height: 1em;
  top: 50%;
  margin-top: -0.5em;
  pointer-events: none;
}

.history-filter-name .search-icon {
  left: 1em;
}

.history-filter-name .loading-icon {
  color: #4399e1;
  font-size: 1.25em;
  right: 1em;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}

.history-filter-name.is-loading .loading-icon {
  visibility: visible;
  opacity: 1;
  animation: spin 2s linear infinite;
}

/* Headings */
.history-headings {
  display: none;
  width: 100%;
  font-weight: 600;
  margin-top: .5em;
  margin-bottom: 1em;
  text-transform: uppercase;
}

.history-headings .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  background: #1f299c;
  /* Main blue */
  color: #fff;
  font-weight: 700;
  font-size: 1.15em;
  border-radius: 8px;
  padding: 16px 24px;
  letter-spacing: 0.02em;

}

/* Optional: Add a subtle divider between columns */
.history-headings .inner>div:not(:last-child) {
  border-right: 1px solid #96d228;
  /* Main green */
  padding-right: 16px;
}

/* History List */
.history-list {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.history-content {
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.is-loading .history-content {
  opacity: 0;
}

/* List Item */
.history-item {
  position: relative;
  background-color: #fff;
  border-radius: var(--global-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: .75em;
  opacity: 0;
  animation: fade-up .5s ease forwards;
  animation-delay: calc(var(--index) * 20ms);
  transition: background-color .3s ease;
}

.history-item .inner {
  position: relative;
  display: flex;
}

.history-item .item-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background-color: transparent;
  color: #000;
  padding: .5em;
  margin: 0;
  border-radius: var(--global-radius);
  text-decoration: none;
  transition: background-color .3s ease;
}

.history-item .item-details::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-focus);
  border-radius: .5em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.history-item .item-details:focus {
  outline: none;
}

.history-item .item-details:hover::after,
.history-item .item-details:focus::after {
  opacity: 1;
}

.history-item .item-details:focus::after {
  transition: none;
}

.history-item .item-details>* {
  padding: .5em;
}

.history-item .item-details>*:first-child {
  width: 100%;
}

.history-item .item-details>*:last-child {
  display: none;
}

.history-item .item-name {
  padding-right: 2em;
  margin: 0;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-dark);
  text-decoration: none;
  word-wrap: break-word;
}

.history-item .status {
  line-height: 1;
  overflow: hidden;
}

.history-item .status-tag {
  display: inline-block;
  font-size: .875em;
  line-height: 1.6;
  padding: .25em .5em;
  border-radius: .15em;
  white-space: nowrap;
  overflow: hidden;
  text-transform: capitalize;
  text-overflow: ellipsis;
  max-width: 100%;
}

.history-item .view-action {
  display: inline-flex;
  justify-content: center;
  border-radius: 100em;
  background-color: var(--main-blue);
  /* Was green, now blue */
  color: var(--main-white);
  padding: .75em 1.5em;
  margin-left: auto;
  font-weight: 600;
  transition:
    filter .3s ease,
    background-color .3s ease,
    color .3s ease;
}

.history-item .view-action:hover {
  background-color: var(--main-green);
  /* Was blue, now green */
  color: var(--main-white);
}

.history-item .item-details:hover .view-action {
  background-color: var(--color-neutral);
  color: #fff;
}

.history-item .expand-button {
  display: inline-flex;
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.25em 1em;
  margin: 0;
  border-radius: 0 .5em 0 0;
  background-color: transparent;
  color: #777;
  transition: background-color .25s ease;
  border: none;
  /* <-- Add this line to remove border */
  box-shadow: none;
  /* <-- Add this line to remove any shadow */
}

.history-item .expand-button:hover {
  background-color: #f8f8f8;
  filter: none;
}

.history-item .expand-button:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-focus);
}

.history-item .expand-button svg {
  transform: rotate(90deg);
}

.history-item .expand-button span {
  font-size: 0;
}

/* Properties */
.history-item .item-properties {
  display: none;
  width: 100%;
  padding: 0.75em 1.5em 1.5em;
  background-color: rgba(0, 0, 0, .025);
  overflow: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.history-item .item-properties .prop-item {
  width: 100%;
  margin-top: .5em;
}

.history-item .item-properties .prop-item div {
  display: inline-block;
  margin-top: .25em;
}

.history-item .item-properties .prop-item div:first-child {
  margin-right: .25em;
  font-weight: 600;
}

.history-item .item-properties .empty-state {
  margin-top: .75em;
}

.history-item .item-properties .loading-dots {
  margin: 1.25em 0 .25em;
}

/* Expanded Items */
.history-item.is-expanded {
  margin-bottom: 1em;
}

.history-item.is-expanded .item-details {
  border-radius: var(--global-radius) var(--global-radius) 0 0;
}

.history-item.is-expanded .item-details::after {
  border-radius: .5em .5em 0 0;
}

.history-item.is-expanded .expand-button {
  border-radius: 0 .5em 0 0;
}

.history-item.is-expanded .expand-button svg {
  transform: rotate(-90deg);
}

.history-item.is-expanded .item-properties {
  display: flex;
  flex-wrap: wrap;
}

/* Loading State */
.history-loading-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  margin: 2em 0;
}

.history-loading-inline svg {
  width: 1em;
  height: 1em;
  margin-right: .75em;
}

/* Empty State */
.history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  background-color: #ddd;
  border-radius: 1em;
  font-size: 1.5em;
  font-weight: 600;
  min-height: 10em;
}

/* Start New Configuration Button */
.start-config-btn {
  position: absolute;
  top: 2em;
  /* Move button down from top */
  right: 2.5em;
  background: var(--main-green);
  color: var(--main-white);
  border: none;
  border-radius: 100em;
  font-weight: 700;
  padding: 0.75em 2em;
  font-size: 1.1em;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

/* Ensure .section-title is positioned relative for absolute button */
.section-title {
  position: relative;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2em;
  /* Add top padding for gap */
}

/* Responsive: stack button below title on mobile */
@media (max-width: 600px) {
  .start-config-btn {
    position: static;
    margin-top: 1em;
    width: 100%;
    display: block;
    right: auto;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Screen: Tablet-up */
@media screen and (min-width: 40em) {

  .history-inner {
    padding: 2em 0 3em;
  }

  .section-title,
  .history-controls .inner,
  .history-headings,
  .history-list,
  .history-skeleton.page-skeleton {
    padding: 0 1.5em;
  }

  .history-filter-name {
    max-width: 20em;
    margin-right: 1em;
  }

  .history-controls button {
    padding: .75em 1.25em;
    margin: .5em .75em .5em 0;
  }

  .history-actions {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
  }

  .history-actions .expand-toggle {
    margin-left: auto;
  }

  .history-headings {
    display: block;
  }

  .history-item {
    margin-bottom: .5em;
  }

  .history-item .item-details {
    flex: 1;
    min-width: 0;
    padding: .75em 0;
  }

  .history-item .item-details>* {
    width: 20%;
    margin: 0;
  }

  .history-item .item-details>*:first-child {
    width: 40%;
    padding-left: 1.5em;
  }

  .history-item .item-details>*:last-child {
    display: block;
    text-align: right;
    padding-right: 1em;
  }

  .history-item .item-name {
    padding-right: 1em;
  }

  .history-item .expand-button {
    position: static;
    align-items: center;
    padding: .5em 1.5em;
    border-radius: 0 .5em .5em 0;
  }
}

/* Screen: Laptop-up */
@media screen and (min-width: 60em) {

  .history-inner {
    padding: 3em 0 10em;
  }

  .section-title,
  .history-controls .inner,
  .history-headings,
  .history-list,
  .history-skeleton.page-skeleton {
    padding: 0 2.5em;
  }

  .history-headings {
    margin-top: 1em;
  }

  .history-controls {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 10;
    backdrop-filter: blur(5px);
  }

  .history-controls.is-stuck {
    box-shadow: var(--shadow-light);
    background-color: #fff;
  }

  @supports (backdrop-filter: blur) {
    .history-controls.is-stuck {
      background-color: rgba(255, 255, 255, .9);
    }
  }

}

/* Loading skeleton */
.page-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity .3s ease;
}

.is-loading .page-skeleton {
  opacity: 1;
}

.skeleton-block {
  height: 5.5em;
  margin-bottom: .5em;
}

.history-skeleton *:nth-child(2) {
  opacity: .75;
}

.history-skeleton *:nth-child(3) {
  opacity: .45;
}

.history-skeleton *:nth-child(4) {
  opacity: .3;
}

.history-skeleton *:nth-child(5) {
  opacity: .15;
}

:root {
  --main-green: #96d228;
  --main-blue: #1f299c;
  --main-black: #222;
  --main-white: #fff;
  --accent-dark: var(--main-blue);
  --color-focus: var(--main-green);
  --color-neutral: var(--main-blue);
  --global-radius: 8px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Background and text */
body.template-history {
  background: var(--main-white);
  color: var(--main-black);
}

/* Section Title */
.section-title h1 {
  color: var(--main-blue);
  border-bottom: 2px solid var(--main-green);
}

/* Controls */
.history-controls button {
  background-color: var(--main-blue);
  /* Was green, now blue */
  color: var(--main-white);
  border: none;
  box-shadow: var(--shadow-light);
}

.history-controls button:hover {
  background-color: var(--main-green);
  /* Was blue, now green */
  color: var(--main-white);
}

/* Filter input */
.history-filter-name {
  background: #f2f6fa;
  border: 1px solid var(--main-green);
}

.history-controls input:focus {
  border-color: var(--main-blue);
}

/* Headings */
.history-headings .inner {
  background: #f2f6fa;
  color: var(--main-blue);
}

/* History List */
.history-list {
  background: var(--main-white);
  box-shadow: var(--shadow-light);
}

/* List Item */
.history-item .item-name {
  color: var(--main-blue);
}

.history-item .view-action {
  background-color: var(--main-blue);
  /* Was green, now blue */
  color: var(--main-white);
}

.history-item .view-action:hover {
  background-color: var(--main-green);
  /* Was blue, now green */
  color: var(--main-white);
}

/* Status Tag */
.history-item .status-tag {
  background: var(--main-blue);
  /* Was green, now blue */
  color: var(--main-white);
}

/* Empty State */
.history-empty {
  background-color: #f2f6fa;
  color: var(--main-blue);
}

/* Focus/Active */
.history-item .item-details:focus::after,
.history-item .item-details:hover::after {
  border-color: var(--main-green);
}

/* Footer styles */
.site-footer {
  background: #1f299c;
  color: #fff;
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 0;
  margin: 0;
  z-index: 100;
}

.footer-inner {
  width: 100%;
  padding: 0.8em 2em;
  box-sizing: border-box;
}

.footer-left {
  text-align: left;
  font-weight: 600;
  font-size: 1em;
}

.footer-right a {
  color: var(--main-green);
  text-decoration: none;
  margin-left: 1em;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--main-white);
  text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1em;
    padding: 0 1em;
  }

  .footer-right a {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }
}

.bf-footer {
  background: #1f299c;
  color: #fff;
  width: 100vw;
  padding: 0;
  margin: 0;
}

.bf-footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2em 2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bf-footer-left span {
  color: #fff;
  font-weight: 600;
  font-size: 1em;
}

/* ===== Moved from history.html inline <style> ===== */
body.template-history {
  background: #f7f9fb;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
  color: #f2f6fa;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

main.content-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../img/Deaerators2.jpg') center center/cover no-repeat;
  filter: brightness(0.5);
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #e6f7c7;
  opacity: .9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions a {
  text-decoration: none;
}

.start-config-btn {
  background: #1f299c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  margin: 0;
  white-space: nowrap;
  height: fit-content;
  align-self: center;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.start-config-btn:hover {
  background: #1f299c;
  color: #fff;
  transform: none;
}

.logout-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  margin: 0;
  white-space: nowrap;
  height: fit-content;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.logout-btn:hover {
  background: #c82333;
  color: #fff;
}

/* Logout and Profile button styling */
.user-actions {
  position: absolute;
  top: 0rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.user-actions a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.profile-btn {
  background-color: #96d228;
  color: #222;
}

.profile-btn:hover {
  background-color: #7bb51c;
  color: #fff;
}

.logout-btn {
  background-color: #dc3545;
  color: #fff;
}

.logout-btn:hover {
  background-color: #c82333;
  color: #fff;
}

.history-controls {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.history-controls .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
}

.history-filter-name {
  position: relative;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.history-filter-name input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.5rem;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  width: 16px;
  height: 16px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.history-actions button {
  background: #96d228;
  color: #f2f6fa;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 4px rgba(150, 210, 40, .3);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  min-width: 120px;
  justify-content: center;
}

.history-actions button:hover {
  background: #7bb31f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(150, 210, 40, .4);
}

.date-toggle {
  min-width: 180px !important;
}

.expand-toggle {
  min-width: 120px !important;
}

.reset-button {
  min-width: 120px !important;
}

.history-actions button svg {
  width: 16px;
  height: 16px;
}

.history-headings {
  background: #f2f6fa;
  color: #fff;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.history-headings .inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  align-items: center;
}

.history-headings .inner>div {
  text-align: left;
}

.history-headings .inner>div:nth-child(2),
.history-headings .inner>div:nth-child(3),
.history-headings .inner>div:nth-child(4) {
  text-align: center;
}

.history-list {
  background: #fff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e1e8ed;
  border-top: none;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.history-content {
  padding: 0;
  width: 100%;
}

.history-item>div {
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.history-item>div:nth-child(2),
.history-item>div:nth-child(3),
.history-item>div:nth-child(4) {
  text-align: center;
  justify-content: center;
}

.history-item>div:last-child {
  justify-content: center;
}

.history-item:hover {
  background-color: #f8f9fa;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item button {
  background: #f2f6fa;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
  min-width: 80px;
  width: 100%;
  max-width: 120px;
}

.history-item button:hover {
  background: #1a252f;
  transform: translateY(-1px);
}

.status-badge {
  background: #f2f6fa;
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  min-width: 80px;
  width: 100%;
  max-width: 120px;
}

.history-skeleton {
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.skeleton-block {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  height: 20px;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.site-footer {
  background: #f2f6fa;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
  width: 100%;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 0 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .main-content {
    padding: 1rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-title {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .start-config-btn {
    align-self: center;
    width: auto;
  }

  .history-controls .inner {
    flex-direction: column;
    align-items: stretch;
  }

  .history-filter-name {
    min-width: auto;
    max-width: none;
  }

  .history-actions {
    justify-content: center;
  }

  .history-headings .inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.template-history .content-wrap,
.template-history .history-inner,
.template-history .content-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.template-history .main-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 2rem !important;
}

.template-history .content-section {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 2rem !important;
}

.template-history .history-controls,
.template-history .history-headings,
.template-history .history-list {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.template-history .section-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 60px !important;
}

.template-history .section-title h1 {
  margin: 0 !important;
  padding: 0 0 .5rem 0 !important;
  line-height: 1.2 !important;
}

.template-history .start-config-btn {
  margin: 0 !important;
  padding: .75rem 1.5rem !important;
  height: fit-content !important;
  align-self: center !important;
}