/* base.css */

@font-face {
  font-family: 'NotoSans';
  src: url("/static/fonts/NotoSans-Regular.c8e58befd243.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #228B22; 
  --secondary-color: #FFBF00;
  --text-color-dark: #222; 
  --text-color-light: #333; 
}

body {
  font-family: 'NotoSans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
}

h1 .step-number, h2 .step-number, h3 .step-number, h4 .step-number, h5 .step-number, h6 .step-number {
  color: var(--secondary-color);
}

h1 .step-text, h2 .step-text, h3 .step-text, h4 .step-text, h5 .step-text, h6 .step-text {
  color: var(--primary-color);
}

a, p {
  color: var(--text-color-light);
}

.icon-primary {
  color: var(--secondary-color);
}

.card-title-primary {
  color: var(--primary-color);
}

.nav-link {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--secondary-color) !important; /* Slightly darker shade on hover/focus */
}

.nav-link.active {
  color: var(--secondary-color) !important; /* Slightly darker shade when active */
}

.navbar-toggler {
  border-color: var(--primary-color) !important;
}

.navbar-toggler-icon { 
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(34, 139, 34, 1)' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); 
}

.text-custom-title {
  text-align: left;
  font-size: 1.25rem; /* Adjust the font size as needed */
  color: var(--primary-color); /* Use the primary color defined in :root */
}

.text-custom-subtitle {
  text-align: left;
  font-size: 1.0rem; /* Adjust the font size as needed */
  color: var(--primary-color); /* Use the primary color defined in :root */
}

.border-custom {
  border-color: var(--primary-color) !important;
  border-radius: 10px; 
}


.custom-checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}


.custom-table {
  color: var(--primary-color) !important;
  border: 1px solid var(--secondary-color);
}

.custom-table .list-group-item {
  border-color: var(--secondary-color);
}


.clear-button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #aaa;
}

.clear-button:hover {
  color: #000;
}

.custom-card {
  border: 2px solid var(--secondary-color); /* Use the secondary color defined in :root */
  border-radius: 15px; /* Adjust the border-radius as needed */
}

.custom-btn {
  background: linear-gradient(90deg, rgba(255, 191, 0, 1) 0%, rgba(204, 153, 0, 1) 100%) !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.custom-price-btn {
  background: linear-gradient(90deg, rgb(0, 204, 34) 0%, rgb(4, 130, 20) 100%) !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.custom-btn:hover {
  background: linear-gradient(90deg, rgba(204, 153, 0, 1) 0%, rgba(255, 191, 0, 1) 100%) !important; /* Ensure the background is not white */
  color: #fff !important; /* Ensure the text color remains white */
  transform: scale(1.05);
}

.custom-price-btn:hover {
  background: linear-gradient(90deg, rgba(4, 130, 20) 0%, rgba(0, 204, 34) 100%) !important; /* Ensure the background is not white */
  color: #fff !important; /* Ensure the text color remains white */
  transform: scale(1.05);
}

.custom-btn:active {
  transform: scale(0.95);
}

/* Additional styles for the file input label */
label.custom-btn {
  display: inline-block;
  margin-bottom: 0;
}


.custom-danger-btn {
  background: linear-gradient(90deg, rgba(255, 77, 77, 1) 0%, rgba(204, 0, 0, 1) 100%) !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.custom-danger-btn:hover {
  background: linear-gradient(90deg, rgba(204, 0, 0, 1) 0%, rgba(255, 77, 77, 1) 100%) !important;
  color: #fff !important;
  transform: scale(1.05);
}

.custom-danger-btn:active {
  transform: scale(0.95);
}


/* Hide the original file input */
input[type="file"] {
  display: none;
}


/* Ensure proper alignment of table rows and cells */
.table tbody tr {
  margin: 0;
  padding: 0;
}

.table tbody tr td {
  padding: 0.5rem 0; /* Adjust padding as needed */
}

.table tbody tr td p {
  margin: 0;
  padding: 0;
}

/* Custom styles for tables if needed */
.table thead th {
    color: var(--primary-color) !important;
    vertical-align: middle;
    text-align: center;
}

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


/* Custom styles for language switcher buttons */
.language-switcher .btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.language-switcher .btn-outline-secondary.active {
  background-color: var(--secondary-color);
  color: white;
}


@keyframes colorWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.color-wave {
  background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 200%;
  animation: colorWave 5s ease infinite;
}

.recommended-badge {
  position: absolute;
  top: -15px; /* Adjust this value to position the button on top of the card's edge */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.color-wave-small {
  background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 200%;
  animation: colorWave 5s ease infinite;
  border: none;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}


/* Custom styles for the wave background */
.wave-bg {
  background: linear-gradient(45deg, 
    #73f273,   /* Lighter bright blue */
    #6dabf2,  /* Lighter purple */
      rgba(242, 131, 245, 0.7)   /* Lighter cyan */
  );
  background-size: 200% 200%;
  animation: backgroundWave 15s ease-in-out infinite;
}

@keyframes backgroundWave {
  0% {
      background-position: 0% 25%;
  }
  25% {
      background-position: 50% 50%;
  }
  50% {
      background-position: 100% 75%;
  }
  75% {
      background-position: 50% 50%;
  }
  100% {
      background-position: 0% 25%;
  }
}


.form-control {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%; /* or a chosen max-width */
  font-size: 1rem;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  margin-top: 0.25em;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  outline: none;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(34, 139, 34, 0.25); /* Based on your primary color */
}

.form-check-input:hover {
  transform: scale(1.05);
  border-color: var(--primary-color) !important;
}

.form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
/* ---------------------------------------------------------------------------
   Store buttons.

   One definition, loaded on every page, because six templates each carried
   their own copy and they had drifted: the same two buttons looked different
   on the app page and on the dashboards. The markup lives in
   templates/partials/_store_buttons.html and nowhere else.
   --------------------------------------------------------------------------- */

.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.store-btns.store-btns-stacked {
  flex-direction: column;
  flex-wrap: nowrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .18);
}

.store-btn i {
  font-size: 1.05rem;
}

/* On a light card. */
.store-btn-primary { background: #1c1c1e; color: #fff; }
.store-btn-primary:hover { background: #000; color: #fff; }
.store-btn-secondary { background: transparent; color: #1c1c1e; border-color: #1c1c1e; }
.store-btn-secondary:hover { background: #1c1c1e; color: #fff; }

/* On the gradient heroes, where a dark outline disappears. */
.store-btns-on-dark .store-btn-primary { background: #fff; color: #14321c; }
.store-btns-on-dark .store-btn-primary:hover { background: #fff; color: #14321c; }
.store-btns-on-dark .store-btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.store-btns-on-dark .store-btn-secondary:hover { background: #fff; color: #14321c; }

/* The logo is one 500px master served through <picture>, so the size it is
   drawn at is decided here rather than by a height attribute repeated across
   four templates. The intrinsic width and height stay on the <img> so the
   browser reserves the space before the bytes arrive. */
.navbar-logo,
.footer-logo,
.login-logo {
    width: auto;
    max-width: none;
}

.navbar-logo { height: 50px; }
.footer-logo { height: 45px; }
.login-logo  { height: 75px; }

/* The cookie table in the privacy policy is prose, not a dashboard. The two
   rules above are written for the prediction tables, where cells are numbers
   packed tight and headings are centred over them; a table of sentences needs
   room to breathe and headings above the column they name. */
.cookie-table thead tr th,
.cookie-table tbody tr td {
    padding: .6rem .75rem;
    vertical-align: top;
}

.cookie-table thead tr th {
    text-align: left;
    white-space: nowrap;
}

.cookie-table td code {
    white-space: nowrap;
}

/* Four columns of sentences do not fit a phone, and sideways scrolling is not
   reading. Below the tablet breakpoint each row becomes its own block and
   every value is introduced by the heading it sat under. */
@media (max-width: 767.98px) {
    .cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .cookie-table,
    .cookie-table tbody,
    .cookie-table tbody tr,
    .cookie-table tbody tr td {
        display: block;
        width: 100%;
    }

    .cookie-table tbody tr {
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: .5rem;
        margin-bottom: 1rem;
        padding: .25rem 0;
    }

    .cookie-table tbody tr td {
        border: 0;
        padding: .45rem .9rem;
    }

    .cookie-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        font-size: .78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .02em;
        color: var(--primary-color);
        margin-bottom: .15rem;
    }
}
