* {
  padding: 0;
  margin: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --primary-color: rgba(201, 160, 90, 0.85);
  --border-color: #b4b4b4;
  --warning-color: red;
  --input-bg-color: #f6f6f6;
  --short-duration: 0.3s;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  font-family: sans-serif;
  padding-bottom: 40px;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 36em) {
  .container {
    width: 33.75em;
  }
}
@media (min-width: 48em) {
  .container {
    width: 45em;
  }
}
@media (min-width: 62em) {
  .container {
    width: 60em;
  }
}
@media (min-width: 75em) {
  .container {
    width: 71.25em;
  }
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.page-header .image-1 img {
  width: 55px;
}

@media (min-width: 75em) {
  .page-header .image-1 img {
    width: 80px;
  }
}

.page-header .image-2 img {
  width: 110px;
}

@media (min-width: 75em) {
  .page-header .image-2 img {
    width: 130px;
  }
}

.page-header h2 {
  padding: 10px;
  font-size: 16px;
}

.slider {
  position: relative;
}

.cards {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  max-height: 160vh;
}

.card {
  min-width: 85%;
  max-height: 100%;
  overflow-y: auto;
  border-bottom: 2px solid var(--border-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -350%;
  transition: 0.3s;
}

.current-card {
  left: 50%;
  transform: translate(-50%, -50%);
}

.previous-card {
  left: 100%;
}

.card-header {
  background-color: var(--primary-color);
  border-radius: 6px 6px 0 0;
  padding: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  position: relative;
  color: #fff;
}

.row {
  display: flex;
  flex-wrap: wrap;
  border-top: 2px solid var(--border-color);
  border-left: 2px solid var(--border-color);
  border-right: 2px solid var(--border-color);
  gap: 15px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-wrap: wrap;
}

.field {
  border: transparent;
  padding: 10px 4px;
  background-color: var(--input-bg-color);
  font-size: 15px;
  border: 0.5px solid #333;
}

.field:focus {
  outline-color: var(--primary-color);
}

.file-input {
  border: transparent;
  padding: 10px 4px;
  font-size: 15px;
}

input[type="radio"],
input[type="checkbox"] {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.radio-indicator {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  transition: var(--short-duration);
  z-index: 1;
}

input[type="radio"]:checked + .radio-indicator,
input[type="checkbox"]:checked + .radio-indicator {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="radio"]:checked ~ label,
input[type="checkbox"]:checked ~ label {
  color: var(--primary-color);
  font-weight: bold;
}

.custom-years-input {
  display: none;
}

.custom-years-input.visible {
  display: block;
}

label {
  transition: var(--short-duration);
}

.required-input-label {
  position: relative;
}

.required-input-label::after {
  content: "*";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  color: #f73131;
  font-weight: bold;
}

.navigation-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  position: absolute;
  min-width: calc(85% - 30px);
  left: 50%;
  transform: translateX(-50%);
  bottom: -60px;
}

.button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--short-duration);
  background-color: var(--primary-color);
  font-family: sans-serif;
  color: #fff;
}

.navigation-buttons button:hover {
  border-color: var(--primary-color);
}

.navigation-buttons .send-button {
  color: #fff;
  background-color: var(--primary-color);
  font-weight: bold;
}

.navigation-buttons .send-button:hover {
  color: var(--primary-color);
  background-color: #fff;
}

.warning-msg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  z-index: 2;
}

.warning-msg p {
  width: fit-content;
  background-color: var(--warning-color);
  color: white;
  padding: 10px;
  font-weight: bold;
  font-size: 12px;

  @media (min-width: 48em) {
    font-size: 16px;
    top: 10%;
  }
}

.wrong-value-input {
  border: 1.3px solid var(--warning-color);
}

.navigation-buttons .disabled-button {
  pointer-events: none;
  background-color: rgb(203, 203, 203);
}

/* 
  **************************************************
  ***************** My "Framework" *****************
  **************************************************
*/

.bold {
  font-weight: bold;
}

.w-full {
  width: 100%;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

.flex-4 {
  flex: 4;
}

.flex-5 {
  flex: 5;
}

.px-2 {
  padding-right: 8px;
  padding-left: 8px;
}

.px-4 {
  padding-right: 16px;
  padding-left: 16px;
}

.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.centered-row {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.sub-title {
  font-weight: bold;
}

/*
  Login Page
*/

.login-header {
  padding: 10px 0;
}

.login-header .container {
  display: flex;
  justify-content: center;
}

.login-header .image img {
  width: 80px;
}

.login-form {
  padding: 30px 40px;
  width: min(80%, 300px);
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  border-radius: 6px;
}

.login-form .field {
  padding-left: 10px;
}

/* Customize Data table */

.dataTables_wrapper {
  margin-top: 40px;
}

.data-table td {
  text-align: center;
}

.data-table td img {
  max-width: 80px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary-color);
}

/* Details Page */

.represented-data .container {
  margin-top: 40px;
  border: 1px solid var(--border-color);
}

.part {
  margin-top: 16px;
  margin-top: 16px;
  border-bottom: 2px solid var(--border-color);
}

.part h3 {
  border: 2px solid var(--border-color);
}

.part .row {
  align-items: center;
}

.part img {
  max-width: 100px;
}

.logout-button {
  padding: 10px 20px;
  border-radius: 6px;
  transition: var(--short-duration);
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
