/* Floating Chat Widget Styles */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'MiSansRegular', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #EC407A, #880E4F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10000;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(136, 14, 79, 0.4);
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(136, 14, 79, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chat-container.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #EC407A, #880E4F);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 24px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'NotoSerifBold', serif;
}

.status {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    margin-left: 10px;
}

.close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-message {
    background: linear-gradient(135deg, #EC407A, #F06292);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background: #FAFAFA;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid #f0f0f0;
}

.bot-message a {
    color: #EC407A;
    text-decoration: none;
    font-weight: 600;
}

.bot-message a:hover {
    text-decoration: underline;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.option-card {
    background: #FAFAFA;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #FCE4EC;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 64, 122, 0.15);
    border-color: #EC407A;
    background: white;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.option-icon {
    width: 48px;
    height: 48px;
    background: var(--soft-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-pink);
    transition: all 0.3s ease;
}

.option-card:hover .option-icon {
    background: var(--primary-pink);
    color: white;
}

.option-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    font-family: 'MiSansMedium', sans-serif;
}

.option-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.option-btn {
    background: var(--dark-pink);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'MiSansMedium', sans-serif;
    font-weight: 500;
}

.option-btn:hover {
    background: #6a0a3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.25);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.quick-reply {
    background: #FCE4EC;
    border: 1px solid #F8BBD3;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-pink);
}

.quick-reply:hover {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

.chat-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.chat-input input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
    background: #FAFAFA;
    transition: all 0.3s;
}

.chat-input input:focus {
    border-color: #EC407A;
    box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.1);
    background: white;
}

.chat-input button {
    background: var(--dark-pink);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-left: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input button:hover {
    background: #6a0a3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
}

/* Responsive design */
@media (max-width: 480px) {
    .chat-container {
        width: 320px;
        height: 450px;
        right: 10px;
        bottom: 70px;
        border-radius: 20px;
    }

    .chat-header {
        padding: 15px;
        border-radius: 20px 20px 0 0;
    }

    .chat-messages {
        padding: 15px;
    }

    .message {
        max-width: 85%;
        padding: 10px 15px;
        font-size: 14px;
    }

    .option-card {
        padding: 15px;
    }

    .chat-input {
        padding: 12px;
    }

    .chat-input input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .chat-input button {
        width: 42px;
        height: 42px;
    }
}