// =========================================================
// * Matcha Date Styles
// =========================================================
@mixin matcha-date-theme($theme) {
  .matcha-date-input {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;

    &::placeholder {
      color: getGrey($theme);
    }

    &:disabled {
      cursor: not-allowed;
      opacity: 0.6;
      color: getDisabled($theme);
    }

    // Customização do ícone do calendário
    &::-webkit-calendar-picker-indicator {
      cursor: pointer;
      filter: opacity(0.6);
      transition: filter 0.2s ease;

      &:hover {
        filter: opacity(1);
      }
    }

    &:disabled::-webkit-calendar-picker-indicator {
      cursor: not-allowed;
      opacity: 0.3;
    }

    // Firefox
    &::-moz-calendar-picker-indicator {
      cursor: pointer;
      opacity: 0.6;
      transition: opacity 0.2s ease;

      &:hover {
        opacity: 1;
      }
    }

    &:disabled::-moz-calendar-picker-indicator {
      cursor: not-allowed;
      opacity: 0.3;
    }
  }

  // Integração com matcha-form-field
  matcha-form-field {
    matcha-date {
      width: 100%;
      display: block;
    }
  }


}