/* ============================
   زر الشات — دائرة خضراء + ريشة ذهبية
   ============================ */

.chat-button {
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    border-width: 4px !important;
}

/* === FORCE FEATHER ICON BIGGER === */
.chat-button .feather-icon {
    width: 60px !important;
    height: 60px !important;
}


.chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 90px;
    height: 90px;
    background: #ffffff; /* الأخضر */
    border-radius: 50%;
    border: 6px solid #d4af37; /* الإطار الذهبي */
    box-shadow:
        0 4px 15px rgba(0,0,0,0.25),
        0 0 12px rgba(212,175,55,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 9999;
}

.feather-icon {
        width: 80px;
        height: 80px;
    }


.button {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 14px 18px;
    margin: 10px auto;

    background: linear-gradient(135deg, #0b5d4b, #0f7a61);
    color: #ffffff;

    border: none;
    border-radius: 16px;

    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Dubai", sans-serif;
    text-align: center;

    cursor: pointer;
    transition: 0.25s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    user-select: none;
}

/* تأثير عند المرور Hover */
.button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.23);
    background: linear-gradient(135deg, #0f7a61, #13a07e);
}

/* تأثير عند الضغط Active */
.button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* لمظهر أكثر نعومة عند اللمس على الموبايل */
.button:focus {
    outline: none;
}







.apple-btn {
    display: block;
    width: 100%;
    max-width: 240px;
    padding: 12px 14px;
    margin: 6px auto;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Dubai", sans-serif;
    color: #007aff;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: 0.15s ease-in-out;
}

.apple-btn:active {
    transform: scale(0.96);
}


.chat-button:hover {
    transform: scale(1.1);
}

.feather-icon {
      width: 60px;
    height: 60px;
    height: auto;
    pointer-events: none;
}

/* ============================
   نافذة الشات — ثابتة 100% عند Zoom
   ============================ */
.chat-box {
    position: fixed;
    right: 50%;
    bottom: 120px;

    transform: translateX(50%) scale(0.7);

    width: 480px;
    max-width: 90%;
    height: 620px;
    max-height: 80%;

    background: #ffffff;
    border-radius: 22px;
    border: 3px solid #d4af37;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.3),
        0 0 25px rgba(212,175,55,0.3);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 99999;
}

/* فتح الشات */
.chat-box.open {
    transform: translateX(50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* ============================
   الهيدر
   ============================ */
.chat-header {
    background: #0b5d4b;
    padding: 18px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ============================
   منطقة الرسائل
   ============================ */
.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f3f3f7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* فقاعات الرسائل — iMessage style */

/* البوت — يمين */
.bot-message {
    background: #e5e5ea;
    color: #000;
    align-self: flex-end;
    padding: 14px 18px;
    border-radius: 20px 20px 4px 20px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: fadeIn .25s ease;
}

/* المستخدم — يسار */
.user-message {
    background: #0b5d4b;
    color: #fff;
    align-self: flex-start;
    padding: 14px 18px;
    border-radius: 20px 20px 20px 4px;
    max-width: 85%;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: fadeIn .25s ease;
}

/* حركة نعومة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   الإدخال
   ============================ */
.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fff;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.chat-input button {
    background: #d4af37;
    border: none;
    padding: 12px 20px;
    border-radius: 16px;
    color: #0b5d4b;
    font-weight: bold;
    cursor: pointer;
   }

/* ============================
   Responsive
   ============================ */
@media (max-width: 600px) {
    .chat-box {
        width: 80%;
        height: 80%;
        bottom: 80px;
    }

    .chat-button {
        width: 30px;
        height: 30px;
        bottom: 20px;
        right: 20px;
    }

    .feather-icon {
         width: 60px;
    height: 60px;
    }




/* عند الشاشات الصغيرة */
@media (max-width: 480px) {
    .bot-message {
        font-size: 16px;
        padding: 15px;
        max-width: 100%;
    }
}

}
