@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    display: grid;
    min-height: 100vh;
    font-size: 1.481481481481481481481481481481vmin;
    font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
      "Helvetica Neue", sans-serif;
  }
  :root {
    --primary-main: theme("colors.primary.main");
    --gray-dark: theme("colors.gray.dark");
    --background-input: theme("colors.background.input");
    --border-input: theme("colors.gray.border");
    --primary-dark: theme("colors.primary.dark");
    --background-card: theme("colors.background.card");
  }
}

@layer components {
  .button-primary {
    border: none;
    background-color: var(--primary-main);
    color: #ffffff;
    border-radius: 0.65rem;
    padding: 0.625rem 0.938rem;
    font-size: 1rem;
    font-weight: bolder;
    max-width: 23rem;
    cursor: pointer;
    &:hover {
      background-color: var(--primary-dark);
    }
  }

  .button-secondary {
    justify-content: center;
    text-decoration: none;
    color: var(--primary-main);
    cursor: pointer;
    border: 0.063rem solid var(--primary-main);
    border-radius: 0.65rem;
    padding: 0.625rem 0.938rem;
    font-size: 1rem;
    font-weight: bolder;
    max-width: 22rem;
    &:hover {
      background-color: var(--primary-main);
      color: #ffffff;
    }
  }

  .action-icons {
    font-size: 1.2rem;
    transition: color 0.3s ease;
    cursor: pointer;
    &:hover {
      color: var(--primary-main);
    }
  }

  .input-admin {
    width: 100%;
    padding: 0.5rem 1.25rem;
    box-sizing: border-box;
    border: 0.125rem solid var(--border-input);
    border-radius: 0.25rem;
    background-color: var(--background-input);
    font-size: 1rem;
    height: 2.75rem;
  }

  .input-content {
    width: 100%;
    padding: 0.5rem 1.25rem;
    box-sizing: border-box;
    border: 0.125rem solid var(--border-input);
    border-radius: 0rem 0rem 0.25rem 0.25rem;
    background-color: var(--background-input);
    font-size: 1rem;
  }

  .input-data {
    border: 0.125rem solid var(--border-input);
    background-color: var(--background-input);
    font-size: 1rem;
    padding: 0.5rem 1.875rem;
    border-radius: 0.25rem;
  }

  .text-header-table {
    font-weight: 400;
    font-size: 1rem;
    padding: 0.75rem 0.875rem;
    text-align: left;
    border-bottom: 0.125rem solid var(--gray-dark);
  }

  .text-body-table {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 0.875rem;
    text-align: left;
    border-bottom: 0.125rem solid var(--border-input);
  }

  .button-table {
    padding: 0.75rem 0.875rem;
    text-align: left;
    border-bottom: 0.125rem solid var(--border-input);
  }

  .message_alert {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 500;
    border-radius: 1rem;
    gap: 0.375rem;
    padding: 0.75rem;
    max-width: 24rem;
    flex-shrink: 0;
  }

  .active_header {
    color: var(--primary-main);
  }

  .card-report {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: stretch;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: var(--background-card);
    max-width: 24rem;
    position: relative;
  }

  .card-report.active {
    border: 2px solid var(--primary-main);
  }

  .card-report.inactive {
    border: 2px solid var(--gray-dark);
  }

  .wrapper-content {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .custom-content ul {
    list-style-type: disc;
    list-style-position: inside;
  }

  .custom-content ol {
    list-style-type: decimal;
    list-style-position: inside;
  }

  .custom-content h1 {
    font-size: 2rem !important;
  }

  .cookies-modal {
    width: 100%;
    height: 4rem;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    z-index: 2;
    bottom: 0;
    left: 0;
    padding: 0 2rem !important;
    background-color: #fff;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(157, 157, 157, 1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(157, 157, 157, 1);
    box-shadow: 0px 0px 10px 0px rgba(157, 157, 157, 1);
    @media (max-width: 767px) {
      height: 7rem;
    }
    > p {
      font-size: 1rem;
      margin: auto 0;
      > a {
        color: #3457d5;
        font-weight: bold;
        text-decoration: underline;
      }
    }
    > .cookies-button {
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #ed0d16;
      border: 0;
      padding: 0.25rem 2.5rem;
      font-size: 1.125rem;
      font-weight: bold;
      border-radius: 0.375rem;
      color: #fff;
    }
    > .cookies-button:hover {
      background-color: black;
      color: #fff;
      transition: all 0.2s;
    }
  }
}
