/* TNC Visitor Stats Widget Styles */

.wvs-widget-container {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 20px 0;
}

.wvs-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wvs-widget-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    border-radius: 6px;
    margin-left: 0.3em;
}

.wvs-widget-item:hover {
    background-color: #f0f0f0;
    border-radius: 6px;
    color: #2271b1;
}

.wvs-widget-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.wvs-widget-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.wvs-widget-value {
    font-weight: 600;
  
    font-size: 13px;
}

.wvs-widget-unique {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 2px;
    margin-left: auto;
    padding-left: 5px;
}

/* Icon Colors */
.wvs-widget-online i {
    color: #667eea;
}

.wvs-widget-today i {
    color: #f5576c;
}

.wvs-widget-yesterday i {
    color: #00f2fe;
}

.wvs-widget-week i {
    color: #43e97b;
}

.wvs-widget-month i {
    color: #fa709a;
}

.wvs-widget-total i {
    color: #30cfd0;
}

/* Compact Style */
.wvs-widget-style-compact {
    max-width: 300px;
    padding: 15px;
}

.wvs-widget-style-compact .wvs-widget-item {
    padding: 8px 0;
    font-size: 13px;
}

.wvs-widget-style-compact .wvs-widget-item i {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.wvs-widget-style-compact .wvs-widget-value {
    font-size: 14px;
}

/* Minimal Style */
.wvs-widget-style-minimal {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.wvs-widget-style-minimal .wvs-widget-item {
    padding: 6px 0;
}

.wvs-widget-style-minimal .wvs-widget-item:hover {
    background-color: transparent;
}

/* Colorful Style */
.wvs-widget-style-colorful .wvs-widget-item {
    background: linear-gradient(90deg, transparent 0%, rgba(34, 113, 177, 0.05) 100%);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    border: 1px solid #f0f0f0;
}

.wvs-widget-style-colorful .wvs-widget-item:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(34, 113, 177, 0.1) 100%);
    transform: translateX(3px);
}

.wvs-widget-style-colorful .wvs-widget-online {
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
}

.wvs-widget-style-colorful .wvs-widget-today {
    background: linear-gradient(90deg, transparent 0%, rgba(245, 87, 108, 0.1) 100%);
}

.wvs-widget-style-colorful .wvs-widget-yesterday {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.1) 100%);
}

.wvs-widget-style-colorful .wvs-widget-week {
    background: linear-gradient(90deg, transparent 0%, rgba(67, 233, 123, 0.1) 100%);
}

.wvs-widget-style-colorful .wvs-widget-month {
    background: linear-gradient(90deg, transparent 0%, rgba(250, 112, 154, 0.1) 100%);
}

.wvs-widget-style-colorful .wvs-widget-total {
    background: linear-gradient(90deg, transparent 0%, rgba(48, 207, 208, 0.1) 100%);
}

/* Widget Title Customization */
.widget_wvs_stats_widget .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget_wvs_stats_widget .widget-title:before {
    content: "📊";
    font-size: 18px;
}

/* Sidebar Widget Container */
.widget_wvs_stats_widget {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 480px) {
    .wvs-widget-container {
        max-width: 100%;
    }
    
    .wvs-widget-item {
        font-size: 13px;
    }
    
    .wvs-widget-value {
        font-size: 15px;
    }
}

/* Animation */
@keyframes fadeInWidget {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wvs-widget-container {
    animation: fadeInWidget 0.5s ease-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wvs-widget-container {
        background: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .wvs-widget-item {
        border-color: #333;
    }
    
    .wvs-widget-item:hover {
        background-color: #2a2a2a;
    }
    
    .wvs-widget-label {
        color: #e0e0e0;
    }
    
    .wvs-widget-style-minimal {
        border-color: #333;
    }
}