/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
/* Общие стили страницы */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Контейнер конвертера */
.converter-container {
  background: #fff; /* Tailwind: белый фон */
  padding: 20px;    /* немного больше отступов */
  margin: 20px;
  border-radius: 12px; /* округление */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
}

/* Заголовок */
h1, .converter-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937; /* Tailwind: text-gray-800 */
  letter-spacing: -0.5px;
}

/* Группы полей */
.field, .field-group {
  margin-bottom: 15px;
}

/* Стили для label */
.field-group label {
  display: block;
  font-weight: 400;
  color: #374151; /* Tailwind: text-gray-700 */
  margin-bottom: 0.5rem;
}

/* Общие стили для инпутов */
.input-byn,
.input-rub,
input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px; /* округление */
  border: 1px solid #d1d5db; /* Tailwind: border-gray-300 */
  background-color: #ffffff; /* белый фон */
  outline: none;
  box-sizing: border-box;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input-byn:focus,
.input-rub:focus {
  border-color: #4f46e5; /* Tailwind indigo-600 */
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

/* Стили для информации о курсе */
#rate-info {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  /*margin-top: 50px;*/
  font-style: italic;
}

/* Адаптивные стили */
@media (max-width: 480px) {
  .converter-container {
    margin: 10px;
    padding: 15px;
  }

  h1, .converter-title {
    font-size: 1.2rem;
  }

  input[type="number"],
  .input-byn,
  .input-rub {
    padding: 10px;
    font-size: 0.95rem;
  }
}

@font-face {
  font-family: 'Ruberoid';
  src: url(/Ruberoid-Bold.ttf) format('truetype');
}
