html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* Stili uniformi per l'applicazione basati su NuovaRichiesta */

/* Container principale con margine superiore */
.main-container {
  margin-top: 2rem;
}

/* Card styling uniforme */
.app-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.app-card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
}

.app-card-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.app-card-header small {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Tabelle uniformi */
.app-table {
  margin-bottom: 0;
}

.app-table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.app-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Alert uniformi */
.app-alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.app-alert-info h6 {
  color: #0c5460;
  font-weight: 600;
}

/* Bottoni uniformi */
.app-btn-group {
  gap: 0.5rem;
}

.app-btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 500;
}

.app-btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.app-btn-outline-warning {
  color: #f57c00;
  border-color: #f57c00;
}

.app-btn-outline-warning:hover {
  background-color: #f57c00;
  border-color: #f57c00;
  color: #fff;
}

/* Form controls uniformi */
.app-form-control,
.app-form-select {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.app-form-control:focus,
.app-form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Jumbotron uniforme */
.app-jumbotron {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.app-jumbotron h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.app-jumbotron .lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.app-jumbotron hr {
  border-color: rgba(255, 255, 255, 0.3);
  margin: 2rem 0;
}

/* Card dashboard uniformi */
.app-dashboard-card {
  height: 100%;
  transition: transform 0.2s ease-in-out;
}

.app-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.app-dashboard-card .card-header {
  font-weight: 600;
}

.app-dashboard-card .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Statistiche uniformi */
.app-stats-box {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.app-stats-box:hover {
  border-color: #0d6efd;
  box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.25);
}

.app-stats-box h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-stats-box small {
  color: #6c757d;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* 
Recovery codes styling */
.recovery-code {
    font-size: 1.1em;
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 0.5rem;
    margin: 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* 2FA status icons */
.fa-shield-alt {
    margin-left: 0.5rem;
}

/* Manage navigation */
.nav-pills .nav-link.active {
    background-color: #0d6efd;
}

.nav-pills .nav-link {
    color: #495057;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}/* 
User Roles Management */
.card.border-success {
    border-color: #198754 !important;
    background-color: #f8fff9;
}

.card.border-secondary {
    border-color: #6c757d !important;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

/* Admin section separator */
.nav-pills hr {
    margin: 0.5rem 0;
    opacity: 0.5;
}

.nav-pills small {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Role icons */
.fa-crown {
    color: #ffc107;
}

.fa-user-tie {
    color: #0d6efd;
}

.fa-user {
    color: #6c757d;
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}