/* Estilos Completos para la página del Escáner v4 (Diseño Móvil Mejorado) */

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   background-color: #1e272e;
   color: #f1f2f6;
   margin: 0;
   padding: 10px;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.scan-container {
   width: 100%;
   max-width: 1200px;
   margin-top: 20px;
   background-color: #2c3e50;
   padding: 20px;
   border-radius: 10px;
   box-sizing: border-box;
}

h1 {
   color: #3498db;
   text-align: center;
   margin-bottom: 20px;
   font-size: 1.8em;
}

p {
   color: #dcdde1;
   line-height: 1.6;
   margin-bottom: 25px;
   text-align: center;
}

.results-table {
   width: 100%;
   border-collapse: collapse;
   margin-top: 20px;
}

.results-table th, .results-table td {
   border-bottom: 1px solid #455a64;
   padding: 15px;
   text-align: right; /* Alinear a la derecha por defecto */
   vertical-align: middle;
}

.results-table th {
   background-color: #2c3e50;
   color: #ecf0f1;
   font-weight: bold;
   text-transform: uppercase;
}

/* Alineaciones específicas para la vista de escritorio */
.results-table th:nth-child(1), .results-table td:nth-child(1) {
    text-align: center;
}
.results-table th:nth-child(2), .results-table td:nth-child(2) {
    text-align: left;
}


.results-table tbody tr:hover {
   background-color: #455a64;
   transition: background-color 0.3s ease;
}

/* Estilo clave para el enlace con ícono */
.asset-link {
   color: #3498db;
   text-decoration: none;
   font-weight: bold;
   display: flex;
   align-items: center;
   gap: 10px;
}
.asset-link:hover {
   text-decoration: underline;
}
.crypto-icon {
    width: 28px;
    height: 28px;
}

.updated-at { color: #7f8c8d; font-size: 0.9em; text-align: center; margin-top: 20px; }
.strength-bar-container { width: 100%; min-width: 100px; height: 25px; background-color: #2c3e50; border-radius: 5px; border: 1px solid #455a64; overflow: hidden; }
.strength-bar-fill { height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 0.9em; border-radius: 4px; transition: width 0.5s ease; }
#progress-container { background-color: #1e272e; border: 1px solid #455a64; border-radius: 5px; padding: 15px; margin-bottom: 20px; text-align: center; }
#progress-bar { width: 100%; height: 30px; background-color: #2c3e50; border-radius: 5px; overflow: hidden; position: relative; }
#progress-fill { background-color: #3498db; height: 100%; width: 0%; border-radius: 5px; transition: width 0.3s ease-in-out; }
#progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 0.9em; font-weight: bold; }


/* --- NUEVOS ESTILOS PARA MÓVILES (RECONSTRUIDOS) --- */
@media screen and (max-width: 768px) {
    .results-table thead {
        display: none;
    }
    .results-table tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid #455a64;
        background-color: #34495e;
        padding: 10px;
    }
    .results-table td {
        display: grid;
        grid-template-columns: 1fr 1.5fr; /* Dos columnas */
        gap: 10px;
        text-align: left;
        padding: 10px 5px;
        border-bottom: 1px dashed #455a64;
    }
    .results-table tr td:last-child {
        border-bottom: none;
    }

    .results-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #ecf0f1;
        text-align: left;
    }
    
    .results-table td .asset-link, .results-table td .strength-bar-container {
        justify-self: end;
    }

    /* Ocultar la celda de ranking de escritorio */
    .results-table td:nth-child(1) {
        display: none;
    }
    
    /* Celda de Activo toma todo el ancho y muestra el ranking */
    .results-table td.asset-cell {
        display: flex;
        align-items: center;
        grid-column: 1 / -1; /* Ocupa todo el ancho */
        padding-bottom: 15px;
    }
    .results-table td.asset-cell:before {
        display: none; /* Ocultar la etiqueta "Activo" */
    }
    .ranking-badge {
        font-size: 1.2em;
        font-weight: bold;
        color: #f39c12;
        margin-right: 15px;
    }
    .asset-cell .asset-link {
        font-size: 1.4em;
    }
}