/* uHost Analytics - Estilos Frontend */

.uhost-analytics-widget,
.uhost-analytics-shortcode {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.uhost-widget-card,
.uhost-shortcode-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.uhost-widget-card:hover,
.uhost-shortcode-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.uhost-widget-icon,
.uhost-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color, #2271b1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uhost-widget-icon svg,
.uhost-card-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.uhost-widget-content h3,
.uhost-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.uhost-stat-number,
.uhost-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color, #1d2327);
    margin: 0;
    line-height: 1;
}

.uhost-stat-label,
.uhost-label {
    font-size: 13px;
    color: #666;
}

.uhost-widget-simple,
.uhost-shortcode-simple,
.uhost-stats-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #2271b1);
    border-radius: 4px;
}

.uhost-simple-label,
.uhost-stats-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.uhost-simple-number,
.uhost-stats-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #2271b1);
}

.uhost-simple-text {
    font-size: 13px;
    color: #666;
}

.uhost-stats-icon {
    font-size: 20px;
}

.uhost-widget-counter {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color, #2271b1) 0%, #135e96 100%);
    border-radius: 12px;
    color: #fff;
}

.uhost-counter-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.uhost-counter-label {
    font-size: 16px;
    opacity: 0.9;
}

.uhost-widget-top-pages,
.uhost-top-pages {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.uhost-widget-top-pages h4,
.uhost-top-pages h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color, #1d2327);
}

.uhost-widget-top-pages ul,
.uhost-top-pages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uhost-widget-top-pages li,
.uhost-top-pages li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.uhost-widget-top-pages li:last-child,
.uhost-top-pages li:last-child {
    border-bottom: none;
}

.page-title {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.page-visits {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #2271b1);
    background: rgba(34, 113, 177, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .uhost-widget-card,
    .uhost-shortcode-card {
        flex-direction: column;
        text-align: center;
    }

    .uhost-stat-number,
    .uhost-number {
        font-size: 28px;
    }

    .uhost-counter-number {
        font-size: 36px;
    }
}
