/* Support Widget Styles */

/* Floating button */
.support-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #458b2d 0%, #5aae3a 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(69, 139, 45, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.support-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(69, 139, 45, 0.4);
}

.support-widget-button.active {
    background: linear-gradient(135deg, #5aae3a 0%, #458b2d 100%);
}

.support-widget-button i {
    font-size: 28px;
    color: white;
}

/* Notification badge */
.support-widget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

/* Panel */
.support-widget-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.support-widget-panel.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.support-widget-header {
    background: linear-gradient(135deg, #458b2d 0%, #5aae3a 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.support-widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.support-widget-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Body */
.support-widget-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.support-widget-form .form-group {
    margin-bottom: 15px;
}

.support-widget-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.support-widget-form input,
.support-widget-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.support-widget-form input:focus,
.support-widget-form textarea:focus {
    outline: none;
    border-color: #458b2d;
}

.support-widget-form input.form-control-plaintext {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

.support-widget-form textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.support-widget-form .char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Footer */
.support-widget-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.support-widget-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.support-widget-footer .btn-send {
    background: linear-gradient(135deg, #458b2d 0%, #5aae3a 100%);
    color: white;
}

.support-widget-footer .btn-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 139, 45, 0.4);
}

.support-widget-footer .btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.support-widget-footer .btn-cancel {
    background: #f1f3f5;
    color: #495057;
}

.support-widget-footer .btn-cancel:hover {
    background: #e9ecef;
}

/* Alert messages */
.support-widget-alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.support-widget-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.support-widget-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success state */
.support-widget-success {
    text-align: center;
    padding: 40px 20px;
}

.support-widget-success i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.support-widget-success h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.support-widget-success p {
    color: #666;
    margin: 0 0 20px 0;
}

/* Loading spinner */
.support-widget-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Chatbot button */
.support-widget-chatbot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.2s;
}

.support-widget-chatbot-btn i {
    font-size: 18px;
}

.support-widget-chatbot-btn .coming-soon-badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-widget-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 12px;
}

.support-widget-divider::before,
.support-widget-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.support-widget-divider span {
    padding: 0 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .support-widget-panel {
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .support-widget-button {
        bottom: 15px;
        right: 15px;
    }
}
