/* Mobile-first responsive design */
* {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  line-height: 1.5;
}

.navbar-custom {
  background-color: #475358;
  padding: 0.5rem 1rem;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link,
.navbar-custom .btn-primary {
  color: #ffffff;
}

.navbar-custom .btn-primary {
  border-color: #ffffff;
}

.navbar-custom .btn-primary:hover {
  background-color: #002752;
}

.btn {
  background-color: #bd2b30 !important;
  color: white !important;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:active,
.btn:hover {
  background-color: #9b2428 !important;
  color: white !important;
}

.btn:focus {
  box-shadow: 0 0 0 2px rgba(189, 43, 48, 0.3) !important;
  outline: none;
}

.alert-info {
  background-color: #475358 !important;
  color: white !important;
  text-align: center;
  display: block;
  padding: 12px;
  margin: 16px auto;
  border-radius: 4px;
  max-width: 100%;
}

.active-link {
  color: #999 !important;
}

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

.form-check-input {
  margin-top: 2px;
  min-width: 20px;
  min-height: 20px;
}

.form-check-label {
  margin-left: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.card-header {
  background-color: #475358;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 4px 4px 0 0;
}

.card-header img {
  max-height: 40px;
  width: auto;
}

input,
select,
textarea {
  width: 100% !important;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #475358;
  outline: none;
  box-shadow: 0 0 0 2px rgba(71, 83, 88, 0.2);
}

@media (min-width: 576px) {
  body {
    font-size: 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }

  .form-check-input {
    min-width: 22px;
    min-height: 22px;
  }

  .form-check-label {
    font-size: 15px;
  }

  .alert-info {
    padding: 16px;
    max-width: 80%;
  }

  .card-header {
    padding: 14px 18px;
  }

  .card-header img {
    max-height: 50px;
  }

  input,
  select,
  textarea {
    padding: 10px 14px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 48px;
  }

  .form-check-input {
    min-width: 24px;
    min-height: 24px;
  }

  .form-check-label {
    font-size: 16px;
    margin-left: 10px;
  }

  .alert-info {
    padding: 20px;
    max-width: 70%;
  }

  .card-header {
    padding: 16px 20px;
  }

  .card-header img {
    max-height: 60px;
  }

  input,
  select,
  textarea {
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .btn {
    padding: 14px 28px;
    font-size: 17px;
  }

  .card-header img {
    max-height: 70px;
  }
}

@media (min-width: 1200px) {
  .alert-info {
    max-width: 60%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding: 12px 20px;
  }

  .form-check-input {
    min-width: 24px;
    min-height: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  input,
  select,
  textarea {
    background-color: #343a40;
    color: white;
    border-color: #495057;
  }

  input:focus,
  select:focus,
  textarea:focus {
    background-color: #495057;
    border-color: #6c757d;
  }
}

.form-check-input {
  max-width: 25px;
  height: auto;
}
