/*
 * RHT Chat Widget
 * Version: 1.1
 * Author: Berk Ilgar Ozalp
 */

/* Base font for all widget elements */
.rht-chat-widget,
.rht-chat-widget * {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.rht-chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
}

.rht-chat-button {
    background: #020d19 !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease;
    letter-spacing: -0.01em !important;
}

.rht-chat-button:hover {
    background: #0c0c0c !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.rht-chat-icon {
    font-size: 18px !important;
}

.rht-chat-modal {
    display: none;
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    width: 380px !important;
    max-width: calc(100vw - 40px) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 20px 25px -5px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    border: 1px solid rgba(2, 13, 25, 0.1) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999999 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.rht-chat-modal.active {
    display: block !important;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rht-chat-modal-header {
    background: #020d19 !important;
    color: white !important;
    padding: 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.rht-chat-modal-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: white !important;
    line-height: 1.4 !important;
}

.rht-chat-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer;
    padding: 8px !important;
    margin: -8px !important;
    line-height: 1 !important;
    opacity: 0.9;
    transition: all 0.2s ease;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
}

.rht-chat-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15) !important;
}

.rht-chat-modal-body {
    padding: 24px !important;
    background: white !important;
    max-height: calc(100vh - 250px) !important;
    overflow-y: auto !important;
}

.rht-chat-form-group {
    margin-bottom: 20px !important;
}

.rht-chat-form-group:last-child {
    margin-bottom: 0 !important;
}

.rht-chat-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #020d19 !important;
    font-size: 14px !important;
    letter-spacing: -0.01em !important;
}

.rht-chat-form-group input,
.rht-chat-form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease;
    background: white !important;
    box-shadow: none !important;
    min-height: unset !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    color: #020d19 !important;
}

.rht-chat-form-group input::placeholder,
.rht-chat-form-group textarea::placeholder {
    color: #6b7280 !important;
    opacity: 0.8 !important;
}

.rht-chat-form-group textarea {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 200px !important;
    resize: vertical !important;
    display: block !important;
}

.rht-chat-form-group input:focus,
.rht-chat-form-group textarea:focus {
    outline: none !important;
    border-color: #020d19 !important;
    box-shadow: 0 0 0 3px rgba(2, 13, 25, 0.1) !important;
}

.rht-chat-submit {
    background: #020d19 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    width: 100% !important;
    transition: all 0.2s ease;
    line-height: 1.4 !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}

.rht-chat-submit:hover {
    background: #0c0c0c !important;
    transform: translateY(-1px);
}

.rht-chat-submit:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 13, 25, 0.1) !important;
}
