/* متغیر اصلی رنگ */
:root { --aioc-primary: #0088cc; }

#aioc-wrapper {
    position: fixed;
    z-index: 9999999;
    direction: rtl;
    font-family: tahoma, arial;
}

/* لانچر (دکمه شناور) */
.aioc-launcher {
    width: 60px !important;
    height: 60px !important;
    background-color: var(--aioc-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.aioc-launcher:hover { transform: scale(1.05); }

/* آیکون داخل لانچر */
.aioc-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aioc-icon-box svg, .aioc-icon-box img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    fill: #fff;
}

/* پنل اصلی */
.aioc-panel {
    position: absolute;
    bottom: 80px; /* فاصله از بالای دکمه */
    width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* استایل‌های داخل پنل */
.aioc-header { padding: 15px; color: #fff; text-align: center; background: var(--aioc-primary); }
.aioc-unit-card { margin: 10px; padding: 12px; background: #f8f9fa; border: 1px solid #eee; border-radius: 12px; cursor: pointer; text-align: center; transition: background 0.2s; }
.aioc-unit-card:hover { background: #f0f0f0; }

.aioc-msgr-item { display: flex; align-items: center; padding: 10px 15px; text-decoration: none; color: #333; border-bottom: 1px solid #f9f9f9; }
.aioc-msgr-item:hover { background: #fcfcfc; }
.aioc-msgr-item img { width: 28px; height: 28px; margin-left: 10px; }

/* Tooltip (بهینه شده) */
.aioc-tooltip {
    position: absolute;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none; /* جلوگیری از تداخل با کلیک روی لانچر */
}

/* نمایش تولتیپ هنگام هاور روی کل پکیج */
#aioc-wrapper:hover .aioc-tooltip { opacity: 1; visibility: visible; }


.aioc-back-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s;
}