@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
.flex {
  display: flex;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 1rem;
}

.mr-4 {
  margin-right: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 2rem;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pl-3 {
  padding-left: 1rem;
}

.pl-4 {
  padding-left: 2rem;
}

pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 2rem;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

html {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
  display: flex;
  height: 100%;
  margin: 0;
  background-color: #f8f9fa;
}

.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 100vh;
  width: calc(100% - 220px);
}

.main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  padding-bottom: 20px;
}

body:not(.authenticated) .content {
  margin-left: 0;
  width: 100%;
}

.page-container {
  min-height: 100vh;
  background: #f8fafc;
  padding: 0;
  margin: 0;
}

.page-header {
  max-width: 1200px;
  margin: 1.5rem auto 2rem auto;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.header-title h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-title i{
    color: var(--primary-color, #0288f2);
    font-size: 1.5rem;
}

.breadcrumb {
  font-size: 1rem;
  background: transparent;
  margin-bottom: 0.3rem;
  padding: 0;

}
.breadcrumb-item a{
    color: var(--primary-color, #0288f2);
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-item a:hover{
    color: var(--secondary-color, #be65e7);
}

.breadcrumb i {
  font-size: 0.75rem;
}
.header-controls {
  display: flex;
  gap: 0.75rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 3rem;
  margin-top: 2.5rem;
}
.content-section .section-header {
  margin-bottom: 2rem;
}
.content-section .section-header .section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content-section .section-header .section-title i {
  color: #3b82f6;
}
.content-section .section-header .section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 0.3rem;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.content-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}
.content-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.content-card .card-header h3, .content-card .card-header h4, .content-card .card-header h5 {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}
.content-card .card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-grid {
  display: grid;
  gap: 2rem;
}
.content-grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}
.content-grid.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.content-grid.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.btn-unified {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn-unified.btn-primary {
  background: var(--primary-color, #0288f2);
  color: white;
}
.btn-unified.btn-primary:hover {
  background: #2563eb;
}
.btn-unified.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}
.btn-unified.btn-secondary:hover {
  background: #e5e7eb;
}
.btn-unified.btn-success {
  background: #10b981;
  color: white;
}
.btn-unified.btn-success:hover {
  background: #059669;
  color: white;
  text-decoration: none;
}
.btn-unified.btn-warning {
  background: #f59e0b;
  color: white;
}
.btn-unified.btn-warning:hover {
  background: #d97706;
  color: white;
  text-decoration: none;
}
.btn-unified.btn-danger {
  background: #ef4444;
  color: white;
}
.btn-unified.btn-danger:hover {
  background: #dc2626;
  color: white;
  text-decoration: none;
}
.btn-unified.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
}
.btn-unified.btn-outline.btn-outline-primary {
  border-color: #3b82f6;
  color: #3b82f6;
}
.btn-unified.btn-outline.btn-outline-primary:hover {
  background: #3b82f6;
  color: white;
}
@media (max-width: 768px) {
  .page-header {
    padding: 1rem 1.2rem;
    border-radius: 12px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-start;
  }
}
.form-unified .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}
.form-unified .form-group input, .form-unified .form-group select, .form-unified .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}
.form-unified .form-group input:focus, .form-unified .form-group select:focus, .form-unified .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-unified .form-group .form-help {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.form-unified .form-group .form-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #ef4444;
}
/* Upload Document Page Styling*/
.upload-page .content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.upload-page h2.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.file-upload-area{
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-area:hover{
    border-color: var(--primary-color, #0288f2);
    background: rgba(2,136,242,0.05);
}
.file-upload-icon{
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.file-upload-text{
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.file-upload-hint{
    font-size: 0.8rem;
    color: #666;
}
/*Form Actions Buttons*/
.form-actions{
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}
.btn-modern.primary {
    background-color: var(--primary-color, #0288F2);
    color: #fff;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-modern.primary:hover {
    background-color: #0272c9;
}

.btn-modern.secondary {
    background-color: #f4f4f4;
    color: #333;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
}

.btn-modern.secondary:hover {
    background-color: #e2e2e2;
}
.management-page .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.table-unified {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.table-unified thead {
  background: #f9fafb;
}
.table-unified thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.table-unified tbody td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.table-unified tbody td:first-child {
  font-weight: 500;
  color: #374151;
}
.table-unified tbody tr:hover {
  background: #f9fafb;
}
.table-unified tbody tr:last-child td {
  border-bottom: none;
}

.alert-unified {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-unified.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.alert-unified.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert-unified.alert-warning {
  background: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}
.alert-unified.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.modal-unified {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-unified .modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-unified .modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-unified .modal-content .modal-header h3 {
  margin: 0;
  color: #1f2937;
}
.modal-unified .modal-content .modal-header .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}
.modal-unified .modal-content .modal-header .close:hover {
  color: #374151;
}

@media (max-width: 768px) {
  .page-header .header-content {
    flex-direction: column;
    text-align: center;
  }
  .page-header .header-title h1 {
    font-size: 1.5rem;
  }
  .page-content {
    padding: 0 1rem 2rem;
  }
  .content-card {
    padding: 1.5rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .table-unified {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .table-unified th, .table-unified td {
    padding: 0.75rem 0.5rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
@media (max-width: 320px) {
  .page-header {
    padding: 1rem 0;
  }
  .page-header .header-content {
    padding: 0 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .page-header .header-title h1 {
    font-size: 1.25rem;
  }
  .page-content {
    padding: 0 0.5rem 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .content-card {
    padding: 1rem;
    border-radius: 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .table-unified {
    font-size: 0.75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .table-unified th, .table-unified td {
    padding: 0.5rem 0.25rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .btn-unified {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
.loading-state {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.loading-state::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 30%,  #0288F2, transparent 60%),
              radial-gradient(circle at 80% 70%, #BE65E7, transparent 60%),
              radial-gradient(circle at 50% 90%, #0288F2, transparent 70%);
}

/* Page layout */
.page-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.header-title h1 {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-controls {
    display: flex;
    gap: 1rem;
}

/* Unified buttons */
.btn-unified {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
}

.btn-unified.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-unified.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-unified.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* Content section */
.content-section {
    margin-bottom: 2.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Grid system */
.content-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.grid-1 {
    grid-template-columns: 1fr;
}
/* --- Quick Actions three rectangular sections --- */
.quick-actions .action-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-actions .action-item {
  display: block;
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.quick-actions .action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  background: linear-gradient(
    to right,
    rgba(2, 136, 242, 0.06),
    rgba(190, 101, 231, 0.06)
  );
}

.quick-actions .action-icon i {
  font-size: 1.4rem;
  color: var(--primary-color, #0288F2);
  margin-bottom: 0.4rem;
}

.quick-actions .action-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.2rem;
}

.quick-actions .action-content p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}
/* Cards */
.content-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a202c;
}

.document-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.document-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.document-info-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-grid.grid-3,
    .content-grid.grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .content-card {
    background: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .page-header {
    background: #2c3238;
    border-color: #495057;
}

[data-bs-theme="dark"] .section-subtitle,
[data-bs-theme="dark"] .document-description,
[data-bs-theme="dark"] .document-info-row {
    color: #adb5bd;
}

[data-bs-theme="dark"] .document-version {
    background: #495057;
    color: #adb5bd;
}
/* Full-width layout for category documents page */
.category-documents-page {
    width: 100%;
    padding: 1.5rem;
    border-left: 4px solid var(--category-color);
}

@media (max-width: 768px) {
    .authenticated .category-documents-page {
        margin-left: 0;
    }
    .category-documents-page {
        padding: 1rem;
    }
}
.container {
  text-align: center;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

img.logo {
  max-width: 200px;
  margin: 0 auto 20px;
}

h1 {
  color: #333;
  margin-bottom: 20px;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
}

input[type=email], input[type=password] {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button[type=submit] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #008CBA;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

button[type=submit]:hover {
  background-color: #007B9E;
}

.simple-nav-bar { font-size: 0.95rem; }
    .back-link { color: #6c757d; text-decoration: none; font-weight: 500; }
    .back-link:hover { text-decoration: underline; color: #495057; }
    .nav-links { display: flex; gap: 2rem; }
    .nav-link { color: #6c757d; text-decoration: none; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: all 0.2s ease; }
    .nav-link:hover { color: #0d6efd; border-bottom-color: #0d6efd; }
    .nav-link.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 600; }

    .report-mini-card, .issue-item {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        border-left: 4px solid #0d6efd;
    }
    .report-mini-card h5 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}
@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }
}

/* Ajustes finales */
    .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0.75rem 1.5rem;
    }

    .section-header.text-left .section-title,
    .section-header.text-left .section-subtitle {
        text-align: left !important;
    }

    /* Contact Information: fondo azul suave, texto legible (oscuro) */
    .card-header.bg-primary.bg-opacity-75 {
        background-color: rgba(13, 110, 253, 0.75) !important;
    }

    .card-header.bg-primary.bg-opacity-75 h3 {
        color: white !important;
    }

    .card-body h4 {
        color: #1e293b !important;
    }

    .card-body p {
        color: #4b5563 !important;
    }

    /* Colores suaves en troubleshooting */
    .card-header.bg-blue-100 { background-color: #dbeafe !important; color: #1e40af !important; }
    .card-header.bg-red-100 { background-color: #fee2e2 !important; color: #991b1b !important; }
    .card-header.bg-yellow-100 { background-color: #fef3c7 !important; color: #92400e !important; }
    .card-header.bg-purple-100 { background-color: #f3e8ff !important; color: #6b21a8 !important; }
    .card-header.bg-teal-100 { background-color: #ccfbf1 !important; color: #115e59 !important; }
    .card-header.bg-indigo-100 { background-color: #e0e7ff !important; color: #3730a3 !important; }
    .card-header.bg-pink-100 { background-color: #fce7f3 !important; color: #be123c !important; }
    .card-header.bg-gray-100 { background-color: #f3f4f6 !important; color: #374151 !important; }
    .card-header.bg-rose-100 { background-color: #ffe4e6 !important; color: #9f1239 !important; }
    .card-header.bg-cyan-100 { background-color: #cffafe !important; color: #155e75 !important; }
    .card-header.bg-green-100 { background-color: #dcfce7 !important; color: #166534 !important; }
    .card-header.bg-slate-100 { background-color: #f1f5f9 !important; color: #334155 !important; }

    /* Hover en tarjetas FAQ */
    .content-card.hover\\:shadow-lg:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    /* Títulos más pequeños en troubleshooting */
    .card-header h3.text-sm {
        font-size: 0.875rem !important;
    }

.dashboard-header {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #3b82f6;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
@media (max-width: 968px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
}

.header-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .header-title h1 {
    font-size: 1.5rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}
.breadcrumb i {
  font-size: 0.75rem;
}

.center-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.selector-label {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.select-wrapper {
  position: relative;
  min-width: 200px;
}
.select-wrapper .center-select {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
}
.select-wrapper .center-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.select-wrapper .select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  transition: transform 0.3s ease;
}
.select-wrapper:hover .select-icon {
  transform: translateY(-50%) rotate(180deg);
}

.metrics-section, .charts-section, .status-section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}
.section-header .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.section-header .section-title .risk-icon {
  color: #f59e0b;
  font-size: 1.25rem;
}
.section-header .section-title .diagnosis-icon {
  color: #3b82f6;
  font-size: 1.25rem;
}
.section-header .section-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.metric-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.05) 50%);
  transform: translateX(50%) translateY(-50%);
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.metric-card.success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.metric-card.success .metric-icon-container {
  background: #dcfce7;
  color: #16a34a;
}
.metric-card.warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.metric-card.warning .metric-icon-container {
  background: #fef3c7;
  color: #d97706;
}
.metric-card.danger {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}
.metric-card.danger .metric-icon-container {
  background: #fee2e2;
  color: #dc2626;
}
.metric-card.info {
  border-left-color: #06b6d4;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}
.metric-card.info .metric-icon-container {
  background: #e0f2fe;
  color: #0891b2;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.metric-info .metric-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.metric-info .metric-full-name {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.metric-icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}
.metric-card:hover .metric-icon-container {
  transform: scale(1.1);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .metric-value {
    font-size: 2rem;
  }
}

details[open] summary i {
    transform: rotate(180deg);
}
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}

.metric-trend, .metric-percentage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.metric-trend i, .metric-percentage i {
  font-size: 0.75rem;
}
.metric-trend i.bi-arrow-up, .metric-percentage i.bi-arrow-up {
  color: #10b981;
}
.metric-trend i.bi-arrow-down, .metric-percentage i.bi-arrow-down {
  color: #ef4444;
}
.metric-trend i.bi-dash, .metric-percentage i.bi-dash {
  color: #6b7280;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.chart-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
.chart-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.chart-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-title h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.chart-title p {
  font-size: 0.875rem;
  color: #6b7280;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
}

.chart-control-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chart-control-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.chart-control-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.chart-legend-custom {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.chart-legend-custom .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.chart-legend-custom .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.chart-container {
  padding: 1.5rem;
  height: 400px;
  position: relative;
}
.chart-container canvas {
  max-height: 100%;
}

.status-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-top: 4px solid #06b6d4;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.status-header .status-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.status-header .status-title .status-icon {
  color: #06b6d4;
  font-size: 1.25rem;
}
.status-header .last-update {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.status-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.status-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.status-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.status-item-header .status-item-label {
  font-weight: 500;
  color: #374151;
}
.status-item-header .status-item-icon {
  font-size: 1.125rem;
}
.status-item-header .status-item-icon.success {
  color: #10b981;
}
.status-item-header .status-item-icon.warning {
  color: #f59e0b;
}
.status-item-header .status-item-icon.danger {
  color: #ef4444;
}
.status-item-header .status-item-icon.info {
  color: #06b6d4;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.status-indicator.success {
  background: #dcfce7;
  color: #16a34a;
}
.status-indicator.warning {
  background: #fef3c7;
  color: #d97706;
}
.status-indicator.danger {
  background: #fee2e2;
  color: #dc2626;
}
.status-indicator.info {
  background: #e0f2fe;
  color: #0891b2;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.status-value {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.metric-card, .chart-card, .status-card {
  animation: fadeInUp 0.5s ease-out forwards;
}

.metrics-grid .metric-card:nth-child(1) {
  animation-delay: 0.1s;
}
.metrics-grid .metric-card:nth-child(2) {
  animation-delay: 0.2s;
}
.metrics-grid .metric-card:nth-child(3) {
  animation-delay: 0.3s;
}
.metrics-grid .metric-card:nth-child(4) {
  animation-delay: 0.4s;
}
.metrics-grid .metric-card:nth-child(5) {
  animation-delay: 0.5s;
}
.metrics-grid .metric-card:nth-child(6) {
  animation-delay: 0.6s;
}

@media (max-width: 640px) {
  .dashboard-header {
    padding: 1rem;
  }
  .metric-card {
    padding: 1rem;
  }
  .chart-container {
    height: 300px;
    padding: 1rem;
  }
  .status-card {
    padding: 1rem;
  }
}
.middle-content-api {
  width: 80%;
  height: 100%;
  margin: 0 auto 0 0;
  padding: 3rem 0 0 2rem;
}
.middle-content-api p {
  color: #333333;
  font-size: 1.2em;
  margin: 0.5rem 0;
}
.middle-content-api table {
  margin: 2rem 2rem;
  width: 80%;
  border-collapse: collapse;
}
.middle-content-api table th {
  color: #6c757d;
  font-size: 1.2em;
  padding: 0 0;
  text-align: center;
}
.middle-content-api table td {
  padding: 1rem 0;
  border-bottom: 1px solid rgb(188.5, 198, 207.5);
  text-align: center;
}
.middle-content-api table .icon-column {
  padding-left: 1rem;
  border-bottom: 0 solid rgb(188.5, 198, 207.5);
}
.middle-content-api table .icon-column i {
  font-size: 1.2rem;
  background-color: #f8f9fa;
  color: rgb(133.7553648069, 142.4849785408, 150.2446351931);
  display: inline-block;
  margin-left: auto;
}
.middle-content-api table .icon-column i:hover {
  color: black;
}
.middle-content-api .my-form-group .error-text {
  font-size: 1em;
  color: #ff6565;
  margin-top: 5px;
}

.documentation-page .page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
.documentation-page .page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.documentation-page .page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}
.documentation-page .page-header .header-actions .btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  font-weight: 500;
}
.documentation-page .page-header .header-actions .btn.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.documentation-page .page-header .header-actions .btn.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.documentation-page .page-header .header-actions .btn.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.documentation-page .page-header .header-actions .btn.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.documentation-page .search-section {
  margin-bottom: 3rem;
}
.documentation-page .search-section .search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.documentation-page .search-section .search-container .input-group {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}
.documentation-page .search-section .search-container .input-group .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  background: white;
}
.documentation-page .search-section .search-container .input-group .form-control:focus {
  box-shadow: none;
  border: none;
}
.documentation-page .search-section .search-container .input-group .form-control::placeholder {
  color: #adb5bd;
}
.documentation-page .search-section .search-container .input-group .btn {
  border: none;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 500;
}
.documentation-page .search-section .search-container .input-group .btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
.documentation-page .categories-section {
  margin-bottom: 3rem;
}
.documentation-page .categories-section .section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}
.documentation-page .categories-section .section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-top: 0.5rem;
}
.documentation-page .categories-section .category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  height: 100%;
}
.documentation-page .categories-section .category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.documentation-page .categories-section .category-card:hover .category-icon {
  transform: scale(1.1);
}
.documentation-page .categories-section .category-card .card-body {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.documentation-page .categories-section .category-card .card-body .category-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  display: block;
}
.documentation-page .categories-section .category-card .card-body .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}
.documentation-page .categories-section .category-card .card-body .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}
.documentation-page .categories-section .category-card .card-body .document-count {
  margin-top: 1rem;
}
.documentation-page .categories-section .category-card .card-body .document-count .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}
.documentation-page .categories-section .category-card .card-footer {
  background: transparent;
  border: none;
  padding: 0 1.5rem 1.5rem;
}
.documentation-page .categories-section .category-card .card-footer .btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}
.documentation-page .categories-section .category-card .card-footer .btn:hover {
  transform: translateY(-1px);
}
.documentation-page .categories-section .category-card[data-color] {
  border-left: 4px solid var(--category-color);
}
.documentation-page .categories-section .category-card[data-color] .card-footer .btn {
  background-color: var(--category-color);
  border-color: var(--category-color);
  color: white;
}
.documentation-page .categories-section .category-card[data-color] .card-footer .btn:hover {
  background-color: var(--category-color);
  opacity: 0.9;
}
.documentation-page .recent-documents .card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.documentation-page .recent-documents .card .card-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  border-radius: 1rem 1rem 0 0 !important;
  padding: 1.5rem;
}
.documentation-page .recent-documents .card .card-header h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}
.documentation-page .recent-documents .card .table {
  margin-bottom: 0;
}
.documentation-page .recent-documents .card .table thead th {
  border-top: none;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
}
.documentation-page .recent-documents .card .table tbody tr {
  transition: background-color 0.2s ease;
}
.documentation-page .recent-documents .card .table tbody tr:hover {
  background-color: #f8f9fa;
}
.documentation-page .recent-documents .card .table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
}
.documentation-page .recent-documents .card .table tbody tr td .document-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}
.documentation-page .recent-documents .card .table tbody tr td .document-description {
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.4;
}
.documentation-page .recent-documents .card .table tbody tr td .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
}
.documentation-page .recent-documents .card .table tbody tr td .badge.badge-category {
  color: white;
}
.documentation-page .recent-documents .card .table tbody tr td .badge.badge-version {
  background-color: #6c757d;
  color: white;
}
.documentation-page .recent-documents .card .table tbody tr td .btn-group .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
  margin-right: 0.25rem;
}
.documentation-page .recent-documents .card .table tbody tr td .btn-group .btn:last-child {
  margin-right: 0;
}
.documentation-page .quick-access .quick-access-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
}
.documentation-page .quick-access .quick-access-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.documentation-page .quick-access .quick-access-card .card-body {
  padding: 2rem 1.5rem;
  text-align: center;
}
.documentation-page .quick-access .quick-access-card .card-body .quick-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.documentation-page .quick-access .quick-access-card .card-body .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.documentation-page .quick-access .quick-access-card .card-body .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.documentation-page .quick-access .quick-access-card .card-body .btn {
  border-radius: 25px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
}
.documentation-page .quick-access .quick-access-card.border-danger {
  border-left: 4px solid #dc3545;
}
.documentation-page .quick-access .quick-access-card.border-danger .quick-icon {
  color: #dc3545;
}
.documentation-page .quick-access .quick-access-card.border-primary {
  border-left: 4px solid #007bff;
}
.documentation-page .quick-access .quick-access-card.border-primary .quick-icon {
  color: #007bff;
}
.documentation-page .quick-access .quick-access-card.border-success {
  border-left: 4px solid #28a745;
}
.documentation-page .quick-access .quick-access-card.border-success .quick-icon {
  color: #28a745;
}

@media (max-width: 768px) {
  .documentation-page .page-header {
    padding: 1.5rem 0;
  }
  .documentation-page .page-header h1 {
    font-size: 2rem;
  }
  .documentation-page .page-header .header-actions {
    margin-top: 1rem;
  }
  .documentation-page .page-header .header-actions .btn {
    margin-bottom: 0.5rem;
  }
  .documentation-page .search-section .input-group {
    border-radius: 25px;
  }
  .documentation-page .search-section .input-group .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .documentation-page .search-section .input-group .btn {
    padding: 0.75rem 1.5rem;
  }
  .documentation-page .category-card {
    margin-bottom: 1rem;
  }
}
.document-detail .document-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.document-detail .document-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.document-detail .document-header p {
  opacity: 0.9;
  margin-bottom: 0;
}
.document-detail .document-header .btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  font-weight: 500;
  margin-left: 0.5rem;
}
.document-detail .document-header .btn.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.document-detail .document-header .btn.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
}
.document-detail .info-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.document-detail .info-card .card-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  border-radius: 1rem 1rem 0 0 !important;
}
.document-detail .info-card .card-header h5 {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}
.document-detail .info-card .card-body dl {
  margin-bottom: 0;
}
.document-detail .info-card .card-body dl dt {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}
.document-detail .info-card .card-body dl dd {
  color: #6c757d;
}
.document-detail .info-card .card-body dl dd .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
}

.settings-page {
  min-height: calc(100vh - 120px); /* Ensure minimum height to push footer down */
}

.settings-tab-content {
  margin-top: 0;
}

/* Form Layout Improvements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 3rem;
}

.form-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

/* Theme Selection */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.theme-option {
  cursor: pointer;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.theme-option:hover {
  background-color: #f9fafb;
  border-color: #e5e7eb;
}

.theme-preview {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  display: flex;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.theme-preview.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.theme-header {
  width: 100%;
  height: 20px;
}

.theme-sidebar {
  width: 30%;
  height: 100%;
}

.theme-content {
  width: 70%;
  height: 100%;
}

.light-theme .theme-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.light-theme .theme-sidebar {
  background-color: #f9fafb;
}

.light-theme .theme-content {
  background-color: #ffffff;
}

.dark-theme .theme-header {
  background-color: #374151;
  border-bottom: 1px solid #4b5563;
}

.dark-theme .theme-sidebar {
  background-color: #4b5563;
}

.dark-theme .theme-content {
  background-color: #1f2937;
}

.auto-theme .theme-header {
  background: linear-gradient(90deg, #ffffff 50%, #374151 50%);
}

.auto-theme .theme-sidebar {
  background: linear-gradient(90deg, #f9fafb 50%, #4b5563 50%);
}

.auto-theme .theme-content {
  background: linear-gradient(90deg, #ffffff 50%, #1f2937 50%);
}

/* Checkbox Groups */
.checkbox-group {
  display: grid;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.form-check:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.form-check input[type=checkbox] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.form-check label {
  font-weight: 500;
  color: #374151;
  margin: 0;
  cursor: pointer;
  flex-grow: 1;
}

.form-check .form-help {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.master-toggle {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* Account Info */
.account-info {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  padding: 0.5rem 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Danger Zone */
.danger-zone {
  background: #fef2f2;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.danger-zone h4 {
  color: #dc2626 !important;
  border-bottom-color: #fecaca;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .theme-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    flex-direction: column;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-unified {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .settings-tabs-container .nav-tabs {
    flex-wrap: wrap;
  }
  .nav-link {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .nav-link span {
    display: none;
  }
  .nav-link i {
    margin-right: 0;
  }
}
.left-sidebar {
  background-color: #252525;
  color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: rgb(188.5, 198, 207.5) 1px solid;
  width: 220px;
  min-width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sidebar-container, .sidebar-container-bottom, .sidebar-container-top {
  display: flex;
  align-content: center;
  flex-direction: column;
  width: 100%;
}

.sidebar-container-top-logo {
  width: 100%;
  padding: 1rem 0 3rem 0;
}
.sidebar-container-top-logo:hover .sidebar-logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.sidebar-container-bottom {
    background:transparent;
    border-radius: 0;
    margin: 0;
    padding: 1rem !important;
}

.menu-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 1rem;
}

.menu ul li {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #f8f9fa;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.menu ul li:not(.selected):hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    border-radius: 8px;
}
.menu ul{
    width: 100%;
}
.menu ul li a {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.menu ul li a span {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}

.menu ul li:hover {
  background-color: rgb(218.25, 223.5, 228.75);
  color: #333333;
}
.menu ul li:hover a {
  color: #3498db;
}
.menu ul li:hover i{
    color: #3498db;
    transform: scale(1.1);
}

.menu ul li.selected {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.menu ul li.selected i {
    color: #ffffff;
}

.menu .bi {
    font-size: 1.3em;
    margin-right: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.user-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8f9fa;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 12px;
  gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #f8f9fa;
    min-width: 100px;
    width: fit-content;
    align-self: center;
}
.language-selector .lang-link {
  padding: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
    min-width: 44px;
    width: 44px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.language-selector .lang-link.active {
  background: #3498db;
  color: white;
  font-weight: 600;
    border-color: #3498db;
}
.language-selector .lang-link:not(.active) {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}
.language-selector .lang-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8f9fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
    text-align: center;
}
.language-selector .lang-code {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: #252525;
  color: #f8f9fa;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
    background-color:#3498db;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.language-modal-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #888888;
    z-index: 1000;
}
.language-modal-content{
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    padding: 15px;
    border-radius: 0 10px 10px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-height: 100vh;
    overflow-y: auto;
}
.language-modal-header{
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    font-weight: bold;
    padding-right: 25px;
}
.languages-grid-compact{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.language-option-compact{
    padding: 8px 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.language-option-compact:hover{
    border-color: #005baa;
    background: #f0f8ff;
    transform: translateY(-1px);
}
.language-code-compact{
    font-weight: bold;
    color: #005baa;
    font-size: 0.85em;
    line-height: 1.2;
}
.language-name-compact{
    color: #333;
    font-size: 0.75em;
    line-height: 1.2;
    margin-top: 2px;
}
.close-language-modal{
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-language-modal:hover {
    color: #333;
    background: #f0f0f0;
    border-radius: 50%;
}
.language-selector-modal a.language-trigger {
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    min-width: 0;
}
.current-lang {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    color: #f8f9fa;
    text-transform: uppercase;
}
.language-selector-modal{
    width: 100%;
}
.language-selector-modal a.language-trigger:hover {
    background: rgba(255,255,255,0.1);
}
.language-popup-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}
.language-popup-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}
.language-popup-header{
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    padding-right: 25px;
}
.languages-grid-compact{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.close-language-popup{
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-language-popup:hover{
    color: #333;
    background: #f0f0f0;
}
.language-text{
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .left-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 250px;
    min-width: 250px;
  }
  .left-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .content {
    margin-left: 0 !important;
  }
  body.sidebar-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}
.footer {
  width: 100%;
  padding: 20px;
  text-align: center;
  background-color: rgb(233.125, 236.25, 239.375);
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}
.footer p {
  margin: 0;
  color: #6c757d;
  font-size: 0.875rem;
}

.top-bar {
  background-color: #f8f9fa;
  padding: 1rem 0 1rem 0;
  margin: 0 2rem;
  text-align: left;
  border-bottom: rgb(188.5, 198, 207.5) 1px solid;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
}

.my-modal-content {
  padding: 20px;
  background-color: #f2f2f2;
  border-radius: 5px;
}

.my-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.my-form-group {
  margin-bottom: 15px;
}

.my-label {
  display: block;
  margin-bottom: 5px;
}

.my-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.my-submit {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn {
  border-radius: 2rem; /* Make the button have round corners */
  align-items: center;
  background-color: rgb(0, 114.6285714286, 236);
  padding: 0.5rem 1.5rem;
  color: #ffffff;
  height: 3rem;
  width: 8rem;
}
.btn:hover {
  border: 1px solid rgb(0, 114.6285714286, 236);
  background-color: #f8f9fa;
  color: rgb(0, 114.6285714286, 236);
  font-weight: 600;
}

.btn i {
  margin-right: 0.5rem;
  margin-left: -1rem;
  font-size: 1.5rem;
}

.card-graph-separator {
  width: 98%;
  border-bottom: 1px solid rgb(188.5, 198, 207.5);
  transition: all 0.3s ease;
  margin: 1em 0 1em 0.5em;
}

.card-data {
  width: 25%;
  margin: 0.5rem;
  padding: 1rem;
  font-size: large;
  font-weight: 700;
  text-align: center;
  border: 1px solid #3a3a3a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #ececec;
  transition: all 0.3s ease;
}
.card-data:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.card-data .card-graph__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card-data .card-graph__value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card-data .card-graph__description {
  font-size: 1rem;
  color: #666;
}

.base-tile {
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.red {
  background-color: #ff4d4f;
  border: 1px solid #ff4d4f;
}

.yellow {
  background-color: #faad14;
  border: 1px solid #faad14;
}

.green {
  background-color: #52c41a;
  border: 1px solid #52c41a;
}

.card-chart {
  width: 46%;
  margin: 3em 0.5em 1em 0.5em;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.card-chart:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.card-chart .card-graph__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card-chart .card-graph__value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card-chart .card-graph__description {
  font-size: 1rem;
  color: #666;
}
/* Estilos para el popup del Device Label */
.device-label-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.device-label-popup.active {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.popup-close:hover {
    color: #495057;
    background: #e9ecef;
}

.popup-body {
    padding: 20px;
    text-align: center;
}

.device-label-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-width: 95%;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-body {
        padding: 15px;
    }
}
/* ===== ESTILOS ESPECÍFICOS PARA AIMS-RISK ===== */

/* Contenedor principal 1400px igual que otras páginas */
.dashboard-container.aims-risk-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1,5rem;
    min-height: calc(100vh - 120px);
}

/* Header ajustado a 1400px */
.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    max-width: 1400px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.breadcrumb i {
    font-size: 0.75rem;
}

/* Grid container para las cards - optimizado para 1400px */
.aims-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.aims-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

/* Tarjetas principales - más grandes para 1400px */
.aims-main-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.aims-main-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    min-height: 140px;
}

.aims-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e5e7eb;
}

.aims-main-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.aims-main-card:hover .aims-main-icon {
    transform: scale(1.1) rotate(5deg);
}

.aims-main-icon.od {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.aims-main-icon.mn {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.aims-main-icon.ap {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.aims-main-content {
    flex: 1;
    min-width: 0;
}

.aims-main-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aims-main-content p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aims-main-arrow {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.aims-main-card:hover .aims-main-arrow {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Filas de métricas - más grandes para 1400px */
.aims-metrics-row {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    flex: 1;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.metric-item:hover .metric-icon {
    transform: scale(1.05);
    background: #e0e7ff;
    color: #4f46e5;
}

.metric-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.metric-label {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.metric-value.operational {
    background: #d1fae5;
    color: #065f46;
}

.metric-value.maintenance {
    background: #fef3c7;
    color: #92400e;
}

.metric-value.valid {
    background: #dbeafe;
    color: #1e40af;
}

.metric-value.expiring {
    background: #fef3c7;
    color: #92400e;
}

/* Footer */
.footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive para 1400px */
@media (max-width: 1400px) {
    .dashboard-container.aims-risk-page,
    .dashboard-header,
    .aims-grid-container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1200px) {
    .aims-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .aims-main-card {
        padding: 1.5rem;
        min-height: 130px;
    }

    .aims-main-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .aims-main-content h3 {
        font-size: 1.375rem;
    }

    .aims-main-content p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 992px) {
    .aims-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .dashboard-container.aims-risk-page {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-container.aims-risk-page {
        padding: 0;
    }

    .dashboard-header {
        padding: 1.25rem 1.5rem;
        margin: 1rem auto 1.5rem auto;
        max-width: calc(100% - 2rem);
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .aims-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .aims-main-card {
        padding: 1.25rem;
        min-height: 120px;
        gap: 1rem;
    }

    .aims-main-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }

    .aims-main-content h3 {
        font-size: 1.25rem;
    }

    .aims-main-content p {
        font-size: 0.875rem;
    }

    .aims-metrics-row {
        padding: 1rem;
    }

    .footer {
        padding: 1rem;
    }
}


/* Contenedor inline para los botones */
.performance-nav-inline {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.performance-inline-btn {
    flex: 1; /* Todos ocupan el mismo ancho */
    max-width: 320px; /* Limita el ancho máximo para que no se estiren demasiado */
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 90px; /* Altura fija para que sean iguales */
}

.performance-inline-btn i {
    font-size: 1.8rem;
    color: #3b82f6;
}

.performance-inline-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #3b82f6;
    background-color: #f8faff;
}

.performance-inline-btn:active,
.performance-inline-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.performance-inline-btn:active i,
.performance-inline-btn.active i {
    color: white;
}

/* Responsive: en pantallas pequeñas se apilan */
@media (max-width: 768px) {
    .performance-nav-inline {
        flex-direction: column;
        align-items: center;
    }
    .performance-inline-btn {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 1rem;
        margin: 0.5rem auto 1rem auto;
        max-width: calc(100% - 1rem);
    }

    .header-title h1 {
        font-size: 1.25rem;
    }

    .aims-grid-container {
        padding: 0 0.5rem;
    }

    .aims-main-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
        min-height: auto;
    }

    .aims-main-arrow {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .metric-content {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .metric-label {
        font-size: 0.875rem;
    }

    .metric-value {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aims-card-wrapper {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.aims-card-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.aims-card-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.aims-card-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

/* Efectos adicionales */
.aims-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.aims-main-card:hover::before {
    opacity: 1;
}

.aims-metrics-row {
    transition: all 0.3s ease;
}

.aims-metrics-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Optimizar espacio en grid de 3 columnas */
@media (min-width: 1201px) and (max-width: 1400px) {
    .aims-grid-container {
        gap: 1.75rem;
    }

    .aims-main-card {
        padding: 1.5rem;
    }

    .aims-metrics-row {
        padding: 1rem;
    }
}

/* BARRA DE NAVEGACIÓN SIMPLE (sin fondo) */
    .simple-nav-bar {
        font-size: 0.95rem;
    }

    .back-link {
        color: #6c757d;
        text-decoration: none;
        font-weight: 500;
    }

    .back-link:hover {
        text-decoration: underline;
        color: #495057;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-link {
        color: #6c757d;
        text-decoration: none;
        font-weight: 500;
        padding: 0.25rem 0;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }

    .nav-link:hover {
        color: #3b82f6;
        border-bottom-color: #3b82f6;
    }

    .nav-link.active {
        color: #3b82f6;
        border-bottom-color: #3b82f6;
        font-weight: 600;
    }

    /* Tu estilo original */
    .query-row { cursor: pointer; transition: background-color 0.2s ease; }
    .query-row:hover { background-color: #f8f9fa !important; }
    .query-details-row { background: transparent !important; }
    .query-details-content { transition: height 0.5s ease, opacity 0.4s ease; overflow: hidden; background: #ffffff; border-top: 1px solid #dee2e6; }
    .chart-container { position: relative; height: 320px; width: 100%; }
    .chart-container canvas { max-height: 100%; max-width: 100%; }
    .expand-icon { transition: transform 0.3s ease; font-size: 1.2rem; color: #495057; }
    .bi-chevron-up { transform: rotate(180deg); }

    .chart-container {
        position: relative;
        height: 420px;
        width: 100%;
    }

    .monitoring-section .chart-card {
        padding: 0;
    }

    .year-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .year-tab {
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .year-tab:hover:not(.disabled) {
        background: #e9ecef;
    }

    .year-tab.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

    .year-tab.disabled {
        background: #f1f3f5;
        color: #adb5bd;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .months-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
        margin: 3rem 0;
    }

    @media (max-width: 992px) {
        .months-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 576px) {
        .months-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .month-card {
        background: white;
        border-radius: 12px;
        padding: 1.8rem;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .month-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 32px rgba(0,0,0,0.15);
    }

    .month-name {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1e293b;
    }

    .activity-dot {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        margin-top: 0.75rem;
    }

    .week-separator {
        background: #e0e7ff !important;
        font-size: 1.1rem;
        color: #4338ca;
        padding: 0.75rem 1rem !important;
        text-align: left;
    }


.issue-item, .report-mini-card {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        border-left: 4px solid #3b82f6;
    }
    .issue-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    .issue-body {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    .issue-status {
        text-align: right;
    }
    .report-mini-card h5 {
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
    }
/*# sourceMappingURL=main.css.map */
