/* === MÓDULO: ESTILOS DEL DASHBOARD === */

.smg-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}
/* Panel oculto por defecto; el JS lo muestra al iniciar el recálculo */
#smg-recalculation-wrapper { display: none; }

/* --- Tarjetas de Resumen (Contenido/Imágenes) --- */
.smg-summary-card-link {
    text-decoration: none;
    display: block;
}
.smg-summary-card {
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}
.smg-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--smg-accent-fuchsia);
}
.summary-card-percentage {
    font-size: 60px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--smg-accent-fuchsia);
}
.summary-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--smg-text-primary);
}
.summary-card-description {
    font-size: 14px;
    color: var(--smg-text-secondary);
    margin: 0 0 25px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


.summary-card-stats a {
    color: inherit;
    text-decoration: none;
}
.summary-card-stats a:hover {
    text-decoration: underline;
}

/* --- Medidores de Cuota --- */
.smg-gauge-card h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--smg-text-secondary);
}
.smg-quota-gauge {
    width: 200px;
    height: 100px;
    margin: 0 auto;
    border-radius: 100px 100px 0 0;
    position: relative;
    overflow: hidden;
    background: conic-gradient(
        from -90deg at 50% 100%, 
        var(--smg-accent-fuchsia) 0deg, 
        var(--smg-accent-fuchsia) calc(var(--percent) * 1.8deg), 
        var(--smg-border-color) calc(var(--percent) * 1.8deg), 
        var(--smg-border-color) 180deg
    );
    transition: all 0.5s ease-out;
}
.smg-quota-gauge.is-warning {
    background: conic-gradient(
        from -90deg at 50% 100%, 
        var(--smg-warning-color) 0deg, 
        var(--smg-warning-color) calc(var(--percent) * 1.8deg), 
        var(--smg-border-color) calc(var(--percent) * 1.8deg), 
        var(--smg-border-color) 180deg
    );
}
.smg-quota-gauge-inner {
    width: 150px;
    height: 75px;
    background: var(--smg-bg-secondary);
    border-radius: 150px 150px 0 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    padding-bottom: 15px;
}
.smg-quota-percentage {
    font-size: 28px;
    font-weight: bold;
    color: var(--smg-text-primary);
}
.smg-quota-counts {
    font-size: 13px;
    color: var(--smg-text-secondary);
}

/* --- Tarjeta de Piloto Automático --- */
.smg-autopilot-card {
    text-align: center;
    padding: 40px 25px;
}
.smg-autopilot-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
    background-image: none !important;
    border: none;
    transition: all 0.4s ease;
}
.smg-autopilot-icon {
    width: 110px;
    height: 110px;
    transition: all 0.4s ease;
}
.smg-autopilot-icon-wrapper.inactive .smg-autopilot-icon {
    filter: grayscale(100%);
    opacity: 0.6;
}
.smg-autopilot-icon-wrapper.active .smg-autopilot-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.smg-autopilot-status {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--smg-text-primary);
}
.smg-autopilot-status.on { color: var(--smg-accent-fuchsia); }
.smg-autopilot-description {
    color: var(--smg-text-secondary);
    max-width: 400px;
    margin: 0 auto 25px auto;
}

/* --- Sobreescrituras para Modo Oscuro --- */
.smg-dark-theme .summary-card-stats {
    color: var(--smg-text-secondary);
}

/* --- SEO Quality Widget --- */
.smg-quality-widget-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}


.smg-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(
        var(--smg-accent-fuchsia) 0deg,
        var(--smg-accent-fuchsia) calc(var(--percent) * 3.6deg),
        var(--smg-border-color) calc(var(--percent) * 3.6deg),
        var(--smg-border-color) 360deg
    ) !important;
    position: relative;
    transition: all 0.5s ease-out;
}


.smg-score-circle-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--smg-bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.smg-score-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--smg-text-primary);
}
.smg-score-number span {
    font-size: 16px;
    color: var(--smg-text-secondary);
    font-weight: 500;
}
.smg-score-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--smg-accent-fuchsia);
}
.smg-quality-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}
.smg-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--smg-text-secondary);
}
.smg-legend-item strong {
    color: var(--smg-text-primary);
    min-width: 20px;
    text-align: right;
}
.smg-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--smg-border-color); /* Default for 'Not Scored' */
}
.smg-legend-good { background-color: var(--smg-accent-fuchsia); }
.smg-legend-ok { background-color: #72A4F2; } /* Using accent blue for 'ok' */
.smg-legend-poor { background-color: var(--smg-warning-color); } /* Using warning for 'poor' */


.smg-dark-theme .smg-score-circle,
.smg-dark-theme .smg-score-circle--blue {
    background: conic-gradient(
        var(--smg-accent-fuchsia) 0deg,
        var(--smg-accent-fuchsia) calc(var(--percent) * 3.6deg),
        #2D3748 calc(var(--percent) * 3.6deg),
        #2D3748 360deg
    );
}
.smg-dark-theme .smg-score-circle--blue {
    background: conic-gradient(
        var(--smg-accent-blue) 0deg,
        var(--smg-accent-blue) calc(var(--percent) * 3.6deg),
        #2D3748 calc(var(--percent) * 3.6deg),
        #2D3748 360deg
    );
}

/* 1. Cambia el color del círculo de celeste a fucsia */
.smg-score-circle--blue {
    background: conic-gradient(
        var(--smg-accent-fuchsia) 0deg,
        var(--smg-accent-fuchsia) calc(var(--percent) * 3.6deg),
        var(--smg-border-color) calc(var(--percent) * 3.6deg),
        var(--smg-border-color) 360deg
    ) !important;
}

/* 2. Cambia el color del texto "Need Links" para que sea fucsia */
.smg-score-circle--blue .smg-score-label {
    color: var(--smg-accent-fuchsia) !important;
}

/* 3. Cambia el color del punto en la leyenda de celeste a fucsia */
.smg-score-circle--blue + .smg-quality-legend .smg-legend-item:first-child .smg-legend-dot {
    background-color: var(--smg-accent-fuchsia) !important;
}


.summary-card-stats {
    font-size: 14px;
    color: var(--smg-accent-dark-blue)!important; /* <-- Este es el color azul oscuro */
    font-weight: bold;
}

.smg-dashboard-widget.smg-widget-padded {
    padding: 20px;
}

/* ==========================================================================
   INICIO: ESTILOS MOVIDOS DE dashboard-settings.js
   ========================================================================== */

/* --- Barra de Recálculo --- */
#smg-recalc-progress-bar.is-complete {
    width: 100%;
}

/* --- Enlace Force Reset --- */
#smg-force-reset-link.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}