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;
}

/* Styles pour la consultation de documents */
.document-icon {
  font-size: 1.2em;
  margin-right: 0.5em;
}

.folder-icon {
  color: #ffc107;
}

.file-icon {
  color: #6c757d;
}

.document-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.btn-back {
  background: #6c757d;
  border: none;
  color: white;
}

.btn-back:hover {
  background: #5a6268;
  color: white;
}

.document-viewer {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-preview {
  max-width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.alert-custom {
  border-left: 4px solid #007bff;
  background: #f8f9fa;
}

/* Styles pour la visualisation de fichiers */
.text-viewer .card {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: none;
}

.text-viewer .card-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-weight: 500;
}

.text-viewer pre {
  font-size: 0.9em;
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.pdf-viewer iframe {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-viewer img {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-viewer img:hover {
  transform: scale(1.02);
}

/* Styles pour les différents types de fichiers */
.file-type-json {
  border-left: 4px solid #28a745;
}

.file-type-xml {
  border-left: 4px solid #fd7e14;
}

.file-type-csv {
  border-left: 4px solid #20c997;
}

.file-type-md {
  border-left: 4px solid #6f42c1;
}

.file-type-txt {
  border-left: 4px solid #6c757d;
}

/* Amélioration des alertes */
.alert-warning {
  border-left: 4px solid #ffc107;
  background: #fff9e6;
}

.alert-info {
  border-left: 4px solid #17a2b8;
  background: #e6f7ff;
}

/* Animation pour les boutons */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}