/* TechnoBro's v4 - Custom Styles */

/* ========================================
   GLOBAL STYLES
   ======================================== */

/* Asegurar que el modo claro funcione correctamente */
[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;
  --bs-body-secondary: #6c757d;
  --bs-body-tertiary: #f8f9fa;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
}

[data-bs-theme="light"] .card {
  background-color: #ffffff;
  border-color: #dee2e6;
  color: #212529;
}

[data-bs-theme="light"] .text-muted {
  color: #6c757d !important;
}

[data-bs-theme="light"] .bg-light {
  background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .table {
  --bs-table-bg: #ffffff;
  --bs-table-color: #212529;
  --bs-table-border-color: #dee2e6;
}

[data-bs-theme="light"] .table-hover tbody tr:hover {
  --bs-table-accent-bg: #f8f9fa;
}

/* Estilos específicos para páginas admin en modo claro */
[data-bs-theme="light"] .admin-page {
  background-color: #ffffff !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .admin-page .card {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .admin-page .table {
  background-color: #ffffff !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .admin-page .table th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .admin-page .table td {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .admin-page .table-hover tbody tr:hover {
  background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .admin-page .form-control {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .admin-page .form-control:focus {
  background-color: #ffffff !important;
  border-color: #86b7fe !important;
  color: #212529 !important;
}

/* Estilos específicos para dropdown de roles en admin/users.php */
.dropdown-menu.roles-dropdown {
  min-width: 280px !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  z-index: 1050 !important;
  position: fixed !important;
}

.dropdown-menu.roles-dropdown .form-check {
  margin-bottom: 0.5rem;
}

.dropdown-menu.roles-dropdown .form-check-label {
  font-size: 0.9rem;
  cursor: pointer;
}

.dropdown-menu.roles-dropdown .form-check-input {
  margin-top: 0.1rem;
}

.dropdown-menu.roles-dropdown .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

/* Asegurar que el dropdown no se corte */
.dropdown-menu.roles-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}

/* Hero section - ahora usa bg-primary de Bootstrap */

/* ========================================
   INDEX.PHP CUSTOM STYLES
   ======================================== */

/* Cards con hover effect */
.index-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.index-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Badges con mejor estilo */
.index-badge {
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* Títulos de sección con mejor estilo */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    border-radius: 2px;
}

/* Sidebar cards con mejor estilo */
.sidebar-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}

/* Newsletter ahora usa Bootstrap bg-light */

/* Stats del hero con mejor estilo */
.hero-stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

/* ========================================
   IMÁGENES RESPONSIVAS - FIX GIGANTES
   ======================================== */

/* Imagen destacada principal */
.featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Imágenes en grid de noticias */
.news-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.news-placeholder {
    width: 100%;
    height: 120px;
    background-color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Imágenes en sidebar */
.sidebar-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Imágenes en hero section */
.hero-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Imágenes de análisis */
.analysis-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.analysis-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--bs-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

/* Cards clickeables */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Categorías */
.category-item {
    transition: all 0.3s ease;
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color) !important;
}

.category-item:hover {
    background-color: var(--bs-primary);
    color: white !important;
    transform: translateY(-1px);
    border-color: var(--bs-primary) !important;
}

.category-item:hover small {
    color: white !important;
}

.category-item:hover .fw-semibold {
    color: white !important;
}

/* Categorías Minimalistas */
.category-item-minimal {
    transition: all 0.2s ease;
    background-color: transparent;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

.category-item-minimal:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary) !important;
}

.category-item-minimal:hover .fw-medium {
    color: var(--bs-primary) !important;
}

/* Imágenes de noticias en fila completa */
.news-thumbnail-full {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.news-placeholder-full {
    width: 100%;
    height: 150px;
    background-color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
}

/* Sidebar news items */
.sidebar-news-item {
    transition: all 0.3s ease;
}

.sidebar-news-item:hover {
    background-color: var(--bs-light);
}

/* Analysis score circle */
.analysis-score {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 3px solid var(--bs-info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--bs-info);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Analysis cards */
.analysis-card {
    overflow: hidden;
}

/* Section headers estilo capturas */
.section-header {
    position: relative;
}

.section-title-large {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

/* Featured images pequeñas */
.featured-image-small {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.featured-placeholder-small {
    width: 100%;
    height: 200px;
    background-color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

/* Imágenes responsive para noticias - FIX SIMETRÍA */
.news-image-responsive {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 8px 0 0;
    display: block;
    /* Forzar que la imagen ocupe exactamente el espacio asignado */
    min-height: 180px;
    max-height: 180px;
    /* Asegurar que no se deforme */
    background-color: var(--bs-light);
}

/* Unified media container for news cards (fluid, bounded, no inline px) */
.news-card-media {
    width: 100%;
    height: clamp(160px, 28vw, 260px); /* fluid height bounded between 160–260 */
    overflow: hidden;
    border-radius: .375rem .375rem 0 0;
    background-color: var(--bs-body-tertiary);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Small variant for sidebar */
.news-card-media--sm {
    height: clamp(120px, 22vw, 180px);
}

/* ----- Avatar images (fix oval on mobile) ----- */
.avatar-img {
    width: var(--avatar-size, 24px);
    height: var(--avatar-size, 24px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: inline-block;
    flex-shrink: 0;
}

/* Override generic mobile rule that forces height:auto on all imgs in cards */
.card img.avatar-img {
    width: var(--avatar-size, 24px) !important;
    height: var(--avatar-size, 24px) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .news-image-responsive {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .news-image-responsive {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
}

/* Asegurar que todas las imágenes de noticias tengan el mismo comportamiento */
.card-img-top.news-image-responsive {
    /* Forzar el comportamiento de redimensionado */
    object-fit: cover !important;
    object-position: center !important;
    /* Prevenir que la imagen se salga del contenedor */
    overflow: hidden;
}

/* Contenedor de imagen para asegurar dimensiones fijas */
.news-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .news-image-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .news-image-container {
        height: 150px;
    }
}

/* ========================================
   NOTICIAS EN FORMATO LISTA - SOLO BOOTSTRAP
   ======================================== */

/* Estilos mínimos usando Bootstrap - SOLO para news cards */
.news-list-card,
.card.news-list-card {
    min-height: 200px; /* Altura mínima, puede crecer si es necesario */
    height: auto; /* Altura automática para adaptarse al contenido */
}

.news-list-card .row,
.card.news-list-card .row {
    height: 100%;
}

.news-list-card .col-12,
.card.news-list-card .col-12 {
    height: 100%;
}

.news-list-card .card-body,
.card.news-list-card .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Truncar texto en escritorio también - SOLO para news cards */
.news-list-card .card-title,
.card.news-list-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 líneas para el título en escritorio */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-list-card .card-text,
.card.news-list-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3 líneas para el resumen en escritorio */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Imágenes con dimensiones fijas y recorte uniforme */
.w-100.h-100.overflow-hidden {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    border-radius: 0.375rem; /* Esquinas redondeadas como Bootstrap */
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-100.h-100.object-fit-cover {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Recorta y centra la imagen */
    object-position: center; /* Centra la imagen */
    border-radius: 0.375rem; /* Esquinas redondeadas como Bootstrap */
}

/* Responsive para tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .news-list-card,
    .card.news-list-card {
        min-height: 180px;
        height: auto;
    }
    
    .w-100.h-100.overflow-hidden {
        height: 180px; /* Altura fija para tablet */
    }
    
    .w-100.h-100.object-fit-cover {
        height: 180px; /* Altura fija para tablet */
    }
    
    .news-list-card .card-title,
    .card.news-list-card .card-title {
        -webkit-line-clamp: 2;
        font-size: 0.95rem;
    }
    
    .news-list-card .card-text,
    .card.news-list-card .card-text {
        -webkit-line-clamp: 2;
        font-size: 0.85rem;
    }
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .news-list-card,
    .card.news-list-card {
        min-height: 250px; /* Altura mínima en móvil */
        height: auto; /* Se adapta al contenido */
    }
    
    .w-100.h-100.overflow-hidden {
        height: 120px; /* Altura fija para la imagen en móvil */
        border-radius: 0.375rem 0.375rem 0 0; /* Solo esquinas superiores redondeadas */
    }
    
    .w-100.h-100.object-fit-cover {
        height: 120px; /* Altura fija para la imagen en móvil */
        border-radius: 0.375rem 0.375rem 0 0; /* Solo esquinas superiores redondeadas */
    }
    
    /* Asegurar que las columnas se apilen correctamente en móvil */
    .news-list-card .col-md-3,
    .news-list-card .col-md-9,
    .card.news-list-card .col-md-3,
    .card.news-list-card .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .news-list-card .col-md-3,
    .card.news-list-card .col-md-3 {
        height: 120px;
        margin-bottom: 0;
    }
    
    .news-list-card .col-md-9,
    .card.news-list-card .col-md-9 {
        height: auto; /* Se adapta al contenido del texto */
        min-height: 130px;
    }
    
    /* Forzar que el row se comporte como columna en móvil */
    .news-list-card .row,
    .card.news-list-card .row {
        flex-direction: column !important;
    }
    
    /* Truncar texto en móvil para que no se salga - SOLO para news cards */
    .news-list-card .card-title,
    .card.news-list-card .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 2 líneas para el título en móvil */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }
    
    .news-list-card .card-text,
    .card.news-list-card .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 4; /* 4 líneas para el resumen en móvil */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
        flex-grow: 1;
    }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 575px) {
    .news-list-card,
    .card.news-list-card {
        min-height: 220px;
        height: auto;
    }
    
    .w-100.h-100.overflow-hidden {
        height: 100px; /* Altura fija para móviles pequeños */
    }
    
    .w-100.h-100.object-fit-cover {
        height: 100px; /* Altura fija para móviles pequeños */
    }
    
    .news-list-card .col-md-3,
    .card.news-list-card .col-md-3 {
        height: 100px;
        margin-bottom: 0;
    }
    
    .news-list-card .col-md-9,
    .card.news-list-card .col-md-9 {
        height: auto;
        min-height: 120px;
    }
    
    /* Forzar que el row se comporte como columna en móviles pequeños */
    .news-list-card .row,
    .card.news-list-card .row {
        flex-direction: column !important;
    }
    
    .news-list-card .card-title,
    .card.news-list-card .card-title {
        -webkit-line-clamp: 2;
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .news-list-card .card-text,
    .card.news-list-card .card-text {
        -webkit-line-clamp: 3;
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* ========================================
   OPINIONES STYLES
   ======================================== */

/* Estilos para el formulario súper pro */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    user-select: none;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.star-rating input[type="radio"]:checked + label ~ label {
    color: #ddd;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.opinion-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.opinion-card.featured {
    border: 2px solid #ffc107 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Solo para headers de cards, no para hero sections */
.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Hero section con gradiente que funcione en ambos modos */
.hero-section.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

[data-bs-theme="light"] .hero-section.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

[data-bs-theme="dark"] .hero-section.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opinion-card {
    animation: fadeInUp 0.6s ease forwards;
}

.opinion-card:nth-child(1) { animation-delay: 0.1s; }
.opinion-card:nth-child(2) { animation-delay: 0.2s; }
.opinion-card:nth-child(3) { animation-delay: 0.3s; }
.opinion-card:nth-child(4) { animation-delay: 0.4s; }

/* Upload de imágenes */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.image-upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.upload-hint {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ========================================
   FORUM STYLES
   ======================================== */

/* Category icons */
.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Category icon images */
.category-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-icon img.large {
    width: 48px;
    height: 48px;
}

/* Category icon fallback */
.category-icon .fallback {
    display: none;
}

/* Category badges */
.category-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Thread avatars */
.thread-avatar {
    width: 40px;
    height: 40px;
}

.thread-avatar.large {
    width: 50px;
    height: 50px;
}

/* Pinned threads icon */
.pinned-icon {
    color: #ffc107;
}

/* Empty state icons */
.empty-state-icon {
    font-size: 5rem;
    color: var(--bs-body-secondary);
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */

.notification-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.notification-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
}

.notification-item.unread {
    border-left: 4px solid #007bff;
    background: #f8f9ff;
}

.notification-item.unread:hover {
    background: #f0f4ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.message {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.notification-icon.mention {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.notification-icon.reply {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.notification-icon.like {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification-icon.friend_request {
    background: #ffc107;
}

.notification-icon.friend_accepted {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.notification-icon.achievement {
    background: linear-gradient(135deg, #fd7e14, #e55100);
}

.notification-icon.default {
    background: #6c757d;
}

/* ========================================
   PROFILE STYLES
   ======================================== */

.profile-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar.large {
    width: 150px;
    height: 150px;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .category-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .category-icon img {
        width: 20px;
        height: 20px;
    }
    
    .category-icon img.large {
        width: 40px;
        height: 40px;
    }
    
    .thread-avatar {
        width: 35px;
        height: 35px;
    }
    
    .thread-avatar.large {
        width: 45px;
        height: 45px;
    }
    
    .empty-state-icon {
        font-size: 4rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar.large {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

[data-bs-theme="dark"] .notification-item {
    background: #343a40;
    border-color: #495057;
    color: #fff;
}

[data-bs-theme="dark"] .notification-item:hover {
    background: #495057;
    border-color: #007bff;
}

[data-bs-theme="dark"] .notification-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.3);
}

[data-bs-theme="dark"] .notification-item.unread {
    background: #1a2332;
}

[data-bs-theme="dark"] .notification-item.unread:hover {
    background: #2c3e50;
}

[data-bs-theme="dark"] .empty-state-icon {
    color: #adb5bd;
}

/* ========================================
   MESSAGES STYLES (MOVIDOS DESDE messages.php)
   ======================================== */

/* Contenedor principal de mensajes */
.messages-container {
    height: 400px;
    background-color: var(--bs-body-bg);
}

/* Estilos para conversaciones */
.conversation-item {
    background-color: var(--bs-body-tertiary);
    color: var(--bs-body-color);
    transition: all 0.2s ease;
}

.conversation-item:hover {
    background-color: var(--bs-body-secondary);
}

.conversation-item.active {
    background-color: var(--bs-primary);
    color: white;
}

.conversation-item.unread {
    border: 1px solid var(--bs-primary);
}

.conversation-item.active.unread {
    border: 1px solid var(--bs-light);
}

/* Estilos para mensajes */
.message-bubble {
    max-width: 300px;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-bubble.own {
    background-color: var(--bs-primary);
    color: white;
}

.message-bubble.other {
    background-color: var(--bs-body-tertiary);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

/* Estilos para mensajes dinámicos (JavaScript) */
.message-dynamic {
    max-width: 70%;
    padding: 0.75rem;
    border-radius: 1rem;
}

/* Contenedor de resultados de búsqueda */
.search-results {
    max-height: 300px;
    overflow-y: auto;
}

/* Estilos adicionales para mensajes */
.message-content {
    word-wrap: break-word;
    white-space: pre-wrap;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Animaciones suaves para mensajes */
.message-bubble {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover effects para conversaciones */
.conversation-item:hover {
    transform: translateX(2px);
}

/* Estilos para avatares en mensajes */
.message-avatar {
    flex-shrink: 0;
}

/* Scroll personalizado para contenedor de mensajes */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: var(--bs-body-tertiary);
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
    opacity: 0.8;
}

/* ========================================
   LINK STYLES
   ======================================== */

a.text-decoration-none {
    color: inherit;
}

a.text-decoration-none:hover {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Solo ajustes mínimos para paginación en móvil */
@media (max-width: 576px) {
    .pagination-btn {
        min-width: 28px;
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
        height: 28px;
    }
    
    /* Ocultar texto "Anterior" y "Siguiente" en móvil muy pequeño */
    .pagination-btn span:not(.bi) {
        display: none;
    }
    
    .pagination-btn .bi-chevron-left::before {
        content: "‹";
    }
    
    .pagination-btn .bi-chevron-right::before {
        content: "›";
    }
}

/* ========================================
   FORUM THREAD SPECIFIC STYLES
   ======================================== */

/* Estilos específicos para forum/thread.php */
.thread-card {
    border-radius: 1rem;
    overflow: hidden;
}

.thread-reply-item {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1rem;
}

.thread-hover-lift {
    transition: all 0.2s ease;
}

.thread-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.thread-content {
    line-height: 1.6;
}

.thread-btn {
    border-radius: 0.5rem;
}

.thread-badge {
    border-radius: 0.5rem;
}

.thread-modal-content {
    border-radius: 1rem;
}

.thread-breadcrumb {
    background: none;
    padding: 0;
}

.thread-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--bs-secondary);
}

/* ========================================
   FORUM THREAD MOBILE OPTIMIZATIONS
   ======================================== */

/* Asegurar que el contenido sea responsive */
@media (max-width: 768px) {
    /* Ajustar espaciado en móvil */
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Ajustar cards para móvil */
    .card-body {
        padding: 0.75rem !important;
    }
    
    /* Asegurar que las imágenes sean responsive */
    .card img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ajustar botones en móvil */
    .btn-group-vertical .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    /* Asegurar que los formularios sean responsive */
    .form-control, .form-select {
        font-size: 0.9rem !important;
    }
    
    /* Ajustar modales en móvil */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
}

@media (max-width: 576px) {
    /* Ajustes adicionales para móviles pequeños */
    .card-body {
        padding: 0.5rem !important;
    }
    
    .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .btn-sm {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Ajustar texto en móvil */
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Ajustar badges */
    .badge {
        font-size: 0.7rem !important;
    }
    
    /* Asegurar que el contenido no se desborde */
    .text-break {
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
}

/* Mention dropdown styles */
.mention-dropdown {
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
    min-width: 200px;
}

.mention-item {
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.mention-item:hover {
    background-color: #f8f9fa;
}

.mention-item:last-child {
    border-bottom: none;
}

/* Cursor pointer utility */
.cursor-pointer {
    cursor: pointer;
}

/* ===== TICKER TECHNOBRO'S ===== */
.tb-ticker-bar {
  position: sticky;
  top: calc(var(--tb-navbar-height, 56px) + env(safe-area-inset-top, 0px));
  z-index: 1019;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  padding: .35rem 0;
  backdrop-filter: saturate(120%) blur(4px);
  width: 100%;
  overflow: hidden; /* Evita que se expanda en móvil */
}

/* El container del ticker debe usar el mismo sistema que el navbar */
.tb-ticker-bar .container {
  /* No sobrescribir el comportamiento de Bootstrap container */
  overflow: hidden; /* Solo esto para evitar overflow horizontal */
}

.tb-ticker-track {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  outline: none;
  flex: 1 1 auto;
  min-width: 0; /* Permite que flex recorte sin romper layout */
}

.tb-ticker-track:focus {
  outline: 2px dashed var(--bs-primary);
  outline-offset: 2px;
}

.tb-ticker-list {
  display: inline-flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
  transform: translateX(0);
  white-space: nowrap;
}

.tb-ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: .925rem;
  line-height: 1.4;
  flex-shrink: 0; /* Evita que los items se compriman */
}

.tb-ticker-link {
  text-decoration: none;
  color: var(--bs-body-color);
  white-space: nowrap;
}

.tb-ticker-link:hover {
  text-decoration: underline;
}

/* Animación */
.tb-anim {
  animation-name: tb-ticker-scroll;
  animation-duration: var(--tb-ticker-duration, 30s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.tb-paused .tb-ticker-list.tb-anim {
  animation-play-state: paused;
}

@keyframes tb-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Icono del rayo */
.tb-ticker-bar .bi-lightning-charge {
  color: var(--bs-warning);
  flex-shrink: 0;
}

/* Sombreado cuando está pegado */
.tb-ticker-bar.is-sticking {
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

/* Responsive para móvil */
@media (max-width: 768px) {
  /* Prevenir scroll horizontal en toda la página */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .tb-ticker-bar {
    padding: .25rem 0;
    /* Asegurar que tenga el mismo ancho que el navbar */
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .tb-ticker-item {
    font-size: .85rem;
  }
  
  .tb-ticker-list {
    gap: 1rem;
  }
  
  /* El container debe usar el mismo padding que el navbar */
  .tb-ticker-bar .container {
    /* Usar el mismo padding que Bootstrap container en móvil */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Asegurar que el track no se expanda */
  .tb-ticker-track {
    max-width: 100%;
    overflow: hidden;
  }
}

/* ========================================
   DARK MODE CONTRAST FIXES
   ======================================== */

/* Fix para texto que no se ve bien en modo oscuro */
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-body-secondary {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-body-tertiary {
    color: #6c757d !important;
}

/* Fix para headers de cards en modo oscuro */
[data-bs-theme="dark"] .card-header.bg-light {
    background-color: #343a40 !important;
    border-bottom: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .card-header.bg-light h5,
[data-bs-theme="dark"] .card-header.bg-light h6 {
    color: #ffffff !important;
}

/* Fix para backgrounds que no contrastan bien */
[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #212529 !important;
}

/* Fix para dropdowns en modo oscuro */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .dropdown-header {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Fix para form controls en modo oscuro */
[data-bs-theme="dark"] .form-control {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #343a40 !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #495057 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

/* Fix para badges en modo oscuro */
[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Fix para list group items en modo oscuro */
[data-bs-theme="dark"] .list-group-item {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #343a40 !important;
}

/* Fix para paginación en modo oscuro */
[data-bs-theme="dark"] .pagination .page-link {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Fix para alertas en modo oscuro */
[data-bs-theme="dark"] .alert {
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #0f5132 !important;
    border-color: #0a3622 !important;
    color: #d1e7dd !important;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #842029 !important;
    border-color: #58151c !important;
    color: #f8d7da !important;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: #664d03 !important;
    border-color: #3d2f00 !important;
    color: #fff3cd !important;
}

[data-bs-theme="dark"] .alert-info {
    background-color: #055160 !important;
    border-color: #032830 !important;
    color: #cff4fc !important;
}

/* Fix para botones en modo oscuro */
[data-bs-theme="dark"] .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

/* Fix para tablas en modo oscuro */
[data-bs-theme="dark"] .table {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: #343a40 !important;
}

/* Fix para cards en modo oscuro */
[data-bs-theme="dark"] .card {
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .card-body {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-text {
    color: #ffffff !important;
}

/* Fix para navbar en modo oscuro */
[data-bs-theme="dark"] .navbar {
    background-color: #212529 !important;
    border-bottom: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* Fix para dropdowns de navbar en modo oscuro */
[data-bs-theme="dark"] .navbar .dropdown-menu {
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .navbar .dropdown-item {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .navbar .dropdown-item:hover {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

/* Fix para iconos en modo oscuro */
[data-bs-theme="dark"] .fs-1.text-muted,
[data-bs-theme="dark"] .fs-2.text-muted,
[data-bs-theme="dark"] .fs-3.text-muted,
[data-bs-theme="dark"] .fs-4.text-muted {
    color: #6c757d !important;
}

/* Fix para links en modo oscuro */
[data-bs-theme="dark"] a {
    color: #0d6efd !important;
}

[data-bs-theme="dark"] a:hover {
    color: #0a58ca !important;
}

/* Fix para hr en modo oscuro */
[data-bs-theme="dark"] hr {
    border-color: #495057 !important;
}

/* Fix para borders en modo oscuro */
[data-bs-theme="dark"] .border {
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .border-top {
    border-top-color: #495057 !important;
}

[data-bs-theme="dark"] .border-bottom {
    border-bottom-color: #495057 !important;
}

[data-bs-theme="dark"] .border-start {
    border-left-color: #495057 !important;
}

[data-bs-theme="dark"] .border-end {
    border-right-color: #495057 !important;
}

/* Fix específico para páginas admin */
[data-bs-theme="dark"] .bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .card.bg-light {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .card.bg-light .card-body {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .card.bg-light h6 {
    color: #ffffff !important;
}

/* Fix para dropdowns de búsqueda */
[data-bs-theme="dark"] .position-absolute.bg-white {
    background-color: #212529 !important;
    border: 1px solid #495057 !important;
}

[data-bs-theme="dark"] .position-absolute.bg-white .list-group-item {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .position-absolute.bg-white .list-group-item:hover {
    background-color: #343a40 !important;
}

/* Fix para mensajes de admin */
[data-bs-theme="dark"] .card.bg-primary {
    background-color: #0d6efd !important;
}

[data-bs-theme="dark"] .card.bg-light.border {
    background-color: #343a40 !important;
    border-color: #495057 !important;
}

/* Fix específico para index.php */
[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .bg-body-tertiary .btn-outline-primary {
    color: #ffffff !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .bg-body-tertiary .btn-outline-primary:hover {
    background-color: #495057 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

/* Fix para cards con bg-light en modo oscuro */
[data-bs-theme="dark"] .card-header.bg-light h3,
[data-bs-theme="dark"] .card-header.bg-light h5,
[data-bs-theme="dark"] .card-header.bg-light h6 {
    color: #ffffff !important;
}

/* Fix para badges en modo oscuro */
[data-bs-theme="dark"] .badge.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .badge.bg-body-secondary.text-body {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Fix para avatares en modo oscuro */
[data-bs-theme="dark"] .avatar-sm.bg-white {
    background-color: #495057 !important;
    color: #ffffff !important;
}

/* Fix para dropdowns de menciones */
[data-bs-theme="dark"] .mention-dropdown {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .mention-dropdown .list-group-item {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .mention-dropdown .list-group-item:hover {
    background-color: #343a40 !important;
}

/* Fix para cards de imagen en modo oscuro */
[data-bs-theme="dark"] .card-img-top.bg-light {
    background-color: #343a40 !important;
}

/* Fix para botones outline en modo oscuro */
[data-bs-theme="dark"] .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-light:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Fix para botones primarios en modo oscuro */
[data-bs-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #084298) !important;
    border-color: #0a58ca !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

[data-bs-theme="dark"] .btn-primary:focus {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .btn-primary:active {
    background: linear-gradient(135deg, #084298, #052c65) !important;
    border-color: #084298 !important;
    color: #ffffff !important;
}

/* Fix para botones success en modo oscuro */
[data-bs-theme="dark"] .btn-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-success:hover {
    background: linear-gradient(135deg, #157347, #0f5132) !important;
    border-color: #157347 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

[data-bs-theme="dark"] .btn-success:focus {
    background: linear-gradient(135deg, #198754, #157347) !important;
    border-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

[data-bs-theme="dark"] .btn-success:active {
    background: linear-gradient(135deg, #0f5132, #0a3622) !important;
    border-color: #0f5132 !important;
    color: #ffffff !important;
}

/* Fix para botones info en modo oscuro */
[data-bs-theme="dark"] .btn-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    border-color: #0dcaf0 !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .btn-info:hover {
    background: linear-gradient(135deg, #0aa2c0, #0886a8) !important;
    border-color: #0aa2c0 !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

[data-bs-theme="dark"] .btn-info:focus {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
    border-color: #0dcaf0 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

[data-bs-theme="dark"] .btn-info:active {
    background: linear-gradient(135deg, #0886a8, #066a88) !important;
    border-color: #0886a8 !important;
    color: #000000 !important;
}

/* Fix para botones light en modo oscuro */
[data-bs-theme="dark"] .btn-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-color: #f8f9fa !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .btn-light:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    border-color: #e9ecef !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 249, 250, 0.3);
}

[data-bs-theme="dark"] .btn-light:focus {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-color: #f8f9fa !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(248, 249, 250, 0.25);
}

[data-bs-theme="dark"] .btn-light:active {
    background: linear-gradient(135deg, #dee2e6, #ced4da) !important;
    border-color: #dee2e6 !important;
    color: #000000 !important;
}

/* Hardware Monitor - Iconos circulares */
.hm-icon-circle {
    width: 80px;
    height: 80px;
}

.hm-icon-circle-sm {
    width: 60px;
    height: 60px;
}

.hm-icon-circle-xs {
    width: 40px;
    height: 40px;
}

.hm-icon-large {
    font-size: 4rem;
}

.hm-icon-md {
    font-size: 3rem;
}

/* Fix para elementos específicos de index.php */
[data-bs-theme="dark"] .bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .bg-white.bg-opacity-10 .h4,
[data-bs-theme="dark"] .bg-white.bg-opacity-10 small {
    color: #ffffff !important;
}
