/* Estilos específicos para la tabla de Logs */
.log-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.badge-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-warning { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }
.badge-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.log-table-container {
    margin-top: 10px;
    overflow-x: auto;
}
.panel-card {
    max-width: 100% !important; /* Quitar el límite de 900px para que quepa la tabla */
}
.main-content-admin {
    padding: 30px 20px !important; /* Reducir ligeramente padding lateral */
}
.log-table {
    width: 100%;
    min-width: 1000px; /* Reducido un poco para intentar que quepa sin scroll si el monitor es grande */
    border-collapse: separate;
    border-spacing: 0;
}
.log-table th {
    background: #f8fafc;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #1B396A;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.log-table td {
    padding: 15px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: middle;
}
.log-table tr:hover td {
    background: #fdfdfd;
}
.log-time {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #64748b;
}
.log-action {
    font-weight: 700;
    color: #1B396A;
}
.log-user {
    font-weight: 700;
    color: #1B396A;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.log-details {
    max-width: 450px;
    line-height: 1.5;
}
.log-target {
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
}

/* Stats Cards (duplicated in admin-dashboard.css, but okay for independence) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1B396A;
}
.stat-card h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1B396A;
}
.stat-icon {
    float: right;
    font-size: 20px;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .log-table th:nth-child(4), .log-table td:nth-child(4),
    .log-table th:nth-child(5), .log-table td:nth-child(5) {
        display: none;
    }
}

/* Helper Classes from Inline Styles */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title-margin-0 {
    margin: 0;
}

.loader-text {
    letter-spacing: 2px;
    font-weight: 200;
    font-size: 11px;
    text-transform: uppercase;
    color: white;
    margin-top: 20px;
}

.btn-refresh-logs {
    height: 35px;
    padding: 0 15px;
    font-size: 12px;
    background: #f1f5f9;
    color: #1B396A;
    border: 1px solid #cbd5e1;
}

.loading-td {
    text-align: center;
    padding: 50px;
}

.loading-p {
    margin-top: 15px;
    color: #64748b;
}
