/* Murshid - Ramadan Khatma Assistant Styles */
.murshid-container {
    position: fixed;
    bottom: 180px;
    left: 20px;
    z-index: 9999;
    font-family: var(--font-main);
    direction: rtl;
    transition: all 0.3s ease;
}

/* Floating Bubble Button */
.murshid-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 60, 64, 0.4);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.8rem;
    position: relative;
    opacity: 0.87;
}

.murshid-bubble:hover {
    transform: translateY(-3px) rotate(5deg);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(26, 60, 64, 0.6);
}

.murshid-bubble i {
    animation: murshid-float 3s ease-in-out infinite;
}

/* Chat Window */
.murshid-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.murshid-window.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Chat Header */
.murshid-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.murshid-header-img {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.murshid-header-info h4 {
    margin: 0;
    font-size: 1rem;
}

.murshid-header-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.murshid-close {
    margin-right: auto;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.murshid-close:hover {
    opacity: 1;
}

/* Messages Area */
.murshid-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
}

.murshid-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    animation: murshid-fade-in 0.3s ease-out;
    font-family: inherit;
}

.murshid-msg.bot {
    align-self: flex-start;
    background: white;
    color: var(--text-primary);
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.murshid-msg.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-left-radius: 2px;
}

/* Options/Buttons */
.murshid-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.murshid-opt-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.murshid-opt-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Typing Indicator */
.typing {
    font-style: italic;
    font-size: 0.8rem;
    color: #888;
}

@keyframes murshid-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes murshid-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode support */
[data-theme="dark"] .murshid-window {
    background: #1e1e1e;
    color: white;
}

[data-theme="dark"] .murshid-body {
    background: #121212;
}

[data-theme="dark"] .murshid-msg.bot {
    background: #2a2a2a;
    color: white;
}

[data-theme="dark"] .murshid-opt-btn {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .murshid-opt-btn:hover {
    background: var(--accent-color);
    color: #1a3c40;
}