/* public/assets/css/ratechatbot.css */

.ratechat-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Above chatbot */
    backdrop-filter: blur(5px);
}

.ratechat-popup.hidden {
    display: none;
}

.ratechat-content {
    background-color: #2a2a2a; /* Darker background for the popup content */
    color: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-out;
}

.ratechat-content h3 {
    margin-top: 0;
    color: #3b82f6; /* Brand color */
    font-size: 1.8em;
}

.ratechat-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
}

.star-rating {
    font-size: 2.5em;
    color: #555; /* Default star color */
    margin-bottom: 20px;
    cursor: pointer;
}

.star-rating i {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    margin: 0 3px;
}

.star-rating i:hover {
    transform: scale(1.1);
}

.star-rating i.fas { /* Filled star */
    color: #FFD700; /* Gold color for active stars */
}

textarea#ratechat-feedback {
    width: calc(100% - 20px);
    min-height: 80px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #f0f0f0;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.ratechat-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 10px;
    transition: background-color 0.2s ease;
}

#ratechat-submit {
    background-color: #3b82f6; /* Brand primary color */
    color: white;
}

#ratechat-submit:hover {
    background-color: #8a41e0;
}

#ratechat-cancel {
    background-color: #444;
    color: white;
}

#ratechat-cancel:hover {
    background-color: #555;
}

#ratechat-message {
    margin-top: 15px;
    color: #28a745; /* Green for success message */
    font-weight: bold;
}

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

@media (max-width: 600px) {
    .ratechat-content {
        padding: 20px;
        width: 95%;
    }
    .star-rating {
        font-size: 2em;
    }
    .ratechat-actions button {
        width: 100%;
        margin: 10px 0;
    }
}
