/* استایل فرانت‌اند ابزارک و شورت‌کدها */

.wsp-widget-container {
    background: transparent;
    padding: 0;
}

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

.wsp-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(99,102,241,0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.wsp-widget-item:hover {
    background: rgba(99,102,241,0.1);
    transform: translateX(-3px);
}

.wsp-widget-item:last-child {
    margin-bottom: 0;
}

.wsp-widget-icon {
    font-size: 20px;
    line-height: 1;
}

.wsp-widget-label {
    flex: 1;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.wsp-widget-value {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    min-width: 40px;
    text-align: center;
}

.wsp-widget-online .wsp-widget-value {
    background: linear-gradient(135deg, #10b981, #059669);
}

.wsp-widget-today .wsp-widget-value {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.wsp-widget-yesterday .wsp-widget-value {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.wsp-widget-week .wsp-widget-value {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.wsp-widget-month .wsp-widget-value {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.wsp-widget-total .wsp-widget-value {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.wsp-widget-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.wsp-widget-footer a {
    color: #6366f1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.wsp-widget-footer a:hover {
    text-decoration: underline;
}

/* شورت‌کد شمارنده */
.wsp-counter {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-top: 4px solid var(--wsp-color, #6366f1);
    transition: all 0.3s;
    max-width: 300px;
}

.wsp-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}

.wsp-counter-icon {
    font-size: 36px;
    line-height: 1;
}

.wsp-counter-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--wsp-color, #6366f1);
    line-height: 1;
}

.wsp-counter-label {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

/* شورت‌کد لیست صفحات */
.wsp-shortcode-pages,
.wsp-shortcode-countries {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wsp-shortcode-pages li,
.wsp-shortcode-countries li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.wsp-shortcode-pages li:last-child,
.wsp-shortcode-countries li:last-child {
    border-bottom: none;
}

.wsp-shortcode-pages a {
    flex: 1;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.wsp-shortcode-pages a:hover {
    color: #6366f1;
}

.wsp-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.wsp-flag {
    font-size: 20px;
    line-height: 1;
}

.wsp-name {
    flex: 1;
    color: #374151;
    font-size: 14px;
}

/* شورت‌کد لحظه‌ای */
.wsp-realtime-shortcode {
    background: #0f172a;
    color: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
}

.wsp-rt-block {
    margin-bottom: 20px;
}

.wsp-rt-block h4 {
    color: #cbd5e1;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.wsp-rt-online-count {
    font-size: 36px;
    font-weight: 800;
    color: #10b981;
}

.wsp-rt-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wsp-rt-block li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
    font-size: 13px;
    color: #cbd5e1;
}

.wsp-rt-count {
    background: #334155;
    color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-right: auto;
}

/* اعلان کوکی */
#wsp-cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    max-width: 380px;
    z-index: 9999;
    border: 1px solid #e5e7eb;
}

.wsp-cn-content p {
    margin: 0 0 10px;
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
}

#wsp-cn-accept {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 8px;
}

.wsp-cn-content a {
    color: #6366f1;
    text-decoration: none;
    font-size: 12px;
}
