/* widget.css - استایل ویجت چسبان */
.sticky-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #3498db;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 9999;
    font-family: 'Vazir', sans-serif;
    color: #ecf0f1;
    transition: transform 0.3s ease;
}

.widget-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(52, 152, 219, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.widget-header i {
    font-size: 1.2rem;
    color: #3498db;
}

.widget-header span {
    font-weight: bold;
}

#widget-balance {
    background: #2ecc71;
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.widget-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    display: none;
}

.sticky-widget.expanded .widget-content {
    display: block;
}

.sticky-widget.expanded #widget-toggle-icon {
    transform: rotate(180deg);
}

.widget-section {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
}

.widget-section h4 {
    color: #2ecc71;
    margin-bottom: 10px;
    font-size: 1rem;
}

.widget-section input, .widget-section select, .widget-section button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #ecf0f1;
}

.widget-section button {
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.widget-section button:hover {
    background: #2980b9;
}

.widget-section button.success {
    background: #2ecc71;
}

.widget-section button.success:hover {
    background: #27ae60;
}

.widget-section button.warning {
    background: #f39c12;
}

.widget-section button.warning:hover {
    background: #e67e22;
}

.widget-section .small {
    font-size: 0.8rem;
    color: #bdc3c7;
}

.widget-login-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.widget-login-row input {
    flex: 1;
}

.widget-logout-btn {
    background: #e74c3c !important;
}

.widget-logout-btn:hover {
    background: #c0392b !important;
}

.widget-message {
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 0.9rem;
    text-align: center;
}

.widget-message.success {
    background: rgba(46, 204, 113, 0.3);
    border-right: 2px solid #2ecc71;
}

.widget-message.error {
    background: rgba(231, 76, 60, 0.3);
    border-right: 2px solid #e74c3c;
}

/* responsive */
@media (max-width: 768px) {
    .widget-header span:not(#widget-balance) {
        font-size: 0.9rem;
    }
    #widget-balance {
        font-size: 0.8rem;
    }
}