/* Robot Assistant Styles - Ultra Professional Version */
.robot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* الأيقونة الأولية (القديمة/أيقونة الدردشة) */
.chat-trigger {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-accent), #0055AA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(0, 119, 204, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-trigger svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* الروبوت الجديد */
.robot-avatar {
    width: 160px;
    height: 160px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
    animation: robotFloat 4s ease-in-out infinite;
    display: none;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
}

.robot-avatar.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.robot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* نافذة الحوار الاحترافية (الرئيسية) */
.speech-bubble {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 119, 204, 0.15);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 15px;
    max-width: 320px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-right: 6px solid var(--color-accent);
    display: none;
}

.speech-bubble.visible {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.robot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.robot-name {
    font-weight: 800;
    color: var(--color-accent);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.robot-status {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
}

.robot-text {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.tour-btn {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--color-accent), #0055AA);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 119, 204, 0.3);
}

.tour-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.4);
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 204, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 119, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 204, 0); }
}

/* ============================================================
   Driver.js Customization - Making all popovers professional
   ============================================================ */

.driver-popover.driverjs-theme {
    direction: rtl;
    text-align: right;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 1.5rem !important;
    border: 1px solid rgba(0, 119, 204, 0.15) !important;
    border-right: 6px solid var(--color-accent) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    padding: 1.5rem !important;
    max-width: 350px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.driver-popover-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--color-accent) !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
    display: block !important;
}

.driver-popover-description {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
}

.driver-popover-footer {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.driver-popover-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 8px 15px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    text-shadow: none !important;
    border: none !important;
}

/* زر التالي */
.driver-popover-next-btn {
    background: linear-gradient(135deg, var(--color-accent), #0055AA) !important;
    color: white !important;
}

.driver-popover-next-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 119, 204, 0.3) !important;
}

/* زر السابق */
.driver-popover-prev-btn {
    background: #f0f0f0 !important;
    color: #555 !important;
}

.driver-popover-prev-btn:hover {
    background: #e0e0e0 !important;
}

/* زر الإغلاق/تم */
.driver-popover-close-btn {
    color: #999 !important;
}

.driver-popover-progress-text {
    font-size: 0.85rem !important;
    color: #777 !important;
    font-weight: 600 !important;
}

/* تخصيص السهم */
.driver-popover-arrow {
    border-color: rgba(255, 255, 255, 0.98) !important;
}
