.auction-log-table,
.registered-users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.auction-log-table th,
.auction-log-table td,
.registered-users-table th,
.registered-users-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.auction-log-table th,
.registered-users-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.auction-log-table tr:nth-child(even),
.registered-users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.auction-log-pagination,
.registered-users-pagination {
    text-align: center;
    margin-top: 20px;
}

.auction-log-pagination .page-numbers,
.registered-users-pagination .page-numbers {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.auction-log-pagination .current,
.registered-users-pagination .current {
    background-color: #f2f2f2;
    font-weight: bold;
}

.export-buttons {
    text-align: center;
    margin: 20px 0;
}

.export-buttons .button {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.export-buttons .button.export-pdf {
    background-color: #4CAF50; /* Verde */
}

.export-buttons .button.export-csv {
    background-color: #008CBA; /* Azul */
}

.export-buttons .button:hover {
    opacity: 0.8;
}

/* ========================================
   ESTILOS PARA EL CONTADOR DE OFERTAS
   ======================================== */

.total-bids-wrapper {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.total-bids-wrapper h2 {
    color: #808080;
    font-weight: bold;
    font-size: 28px;
    margin: 0;
    padding: 10px 0;
}

.total-bids-wrapper .bids-count {
    color: #2271b1;
    font-size: 1.2em;
    font-weight: 900;
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Widget del dashboard */
#total_bids_dashboard_widget .inside {
    padding: 0;
}

#total_bids_dashboard_widget h2 {
    margin-bottom: 0;
}


/* ========================================
   ESTILOS PARA ESTADÍSTICAS DE PRODUCTOS
   ======================================== */

/* Contenedor principal */
.auction-product-stats-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.auction-product-stats-container.dark-theme {
    background: #2c3e50;
    color: #ecf0f1;
}

.auction-product-stats-container.colorful-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Título principal */
.stats-main-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.stats-main-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.dark-theme .stats-main-title {
    color: #ecf0f1;
}

.colorful-theme .stats-main-title {
    color: white;
}

/* Grid de tarjetas */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Tarjetas individuales */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.total-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.total-card::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.with-bids-card {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.with-bids-card::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.without-bids-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.without-bids-card::before {
    background: linear-gradient(90deg, #ff9a56, #ff6a00);
}

/* Elementos dentro de las tarjetas */
.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-percentage {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Contenedor del gráfico */
.stats-chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.stats-chart-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Gráfico de barras */
.stats-bar-chart {
    max-width: 600px;
    margin: 0 auto;
}

.chart-bar-wrapper {
    margin-bottom: 20px;
}

.chart-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-bar-container {
    background: #e0e0e0;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    border-radius: 20px;
    transition: width 1.5s ease-out;
    animation: slideIn 1s ease-out;
    position: relative;
}

@keyframes slideIn {
    from { width: 0 !important; }
}

.with-bids-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.without-bids-bar {
    background: linear-gradient(90deg, #ff9a56, #ff6a00);
}

.bar-value {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Sección de detalles */
.stats-details {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.stats-details h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.detail-item:hover {
    background: #e8f4fd;
}

.detail-icon {
    font-size: 24px;
    margin-right: 12px;
}

.detail-label {
    flex: 1;
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-size: 20px;
    font-weight: bold;
    color: #2271b1;
}

/* Pie de estadísticas */
.stats-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.update-time {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 768px) {
    .auction-product-stats-container {
        padding: 20px;
    }
    
    .stats-main-title {
        font-size: 24px;
    }
    
    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Animación de carga */
.auction-product-stats-container {
    animation: fadeIn 0.5s ease-in;
}

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

/* Tema oscuro específico */
.dark-theme .stat-card {
    background: #34495e;
    color: #ecf0f1;
}

.dark-theme .stat-number,
.dark-theme .stat-label {
    color: #ecf0f1;
}

.dark-theme .stats-chart-container {
    background: #34495e;
}

.dark-theme .stats-chart-container h3 {
    color: #ecf0f1;
}

.dark-theme .chart-label {
    color: #bdc3c7;
}

.dark-theme .stats-details {
    background: #34495e;
    border-color: #2c3e50;
}

.dark-theme .stats-details h3 {
    color: #ecf0f1;
}

.dark-theme .detail-item {
    background: #2c3e50;
}

.dark-theme .detail-label {
    color: #95a5a6;
}

.dark-theme .detail-value {
    color: #3498db;
}

/* Tema colorido específico */
.colorful-theme .stat-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.colorful-theme .stat-number,
.colorful-theme .stat-label {
    color: white;
}

.colorful-theme .stat-percentage {
    background: rgba(255,255,255,0.3);
    color: white;
}

.colorful-theme .stats-chart-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.colorful-theme .stats-chart-container h3 {
    color: white;
}

.colorful-theme .chart-label {
    color: rgba(255,255,255,0.9);
}

/* Error */
.auction-stats-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.stats-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    height: 300px;
    border-radius: 12px;
}
