/* استایل مودال اطلاع‌رسانی تماس‌های ورودی - کوچک و در پایین سمت چپ */

.incoming-call-small-modal {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    margin: 0 !important;
    z-index: 1050 !important;
    max-width: 300px !important;
    pointer-events: auto !important;
}

.incoming-call-small-modal .modal-content {
    pointer-events: auto !important;
}

/* جلوگیری از تداخل با بقیه عناصر */
.modal-backdrop {
    display: none !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* جلوگیری از تداخل با سایر مودال‌ها */
.incoming-call-small-modal {
    z-index: 1050 !important;
}

.incoming-call-small-modal.show {
    z-index: 1050 !important;
}

/* اطمینان از اینکه مودال با بقیه عناصر تداخل نکند */
.incoming-call-small-modal .modal-content {
    position: relative;
    z-index: 1051;
}

/* جلوگیری از scroll lock */
body.incoming-call-modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.incoming-call-modal {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideInFromLeft 0.3s ease-out;
    font-size: 0.9rem;
}

.incoming-call-modal .modal-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 10px 10px 0 0;
    border: none;
    padding: 10px 15px;
}

.incoming-call-modal .modal-title {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.incoming-call-modal .modal-title i {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.incoming-call-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    font-size: 0.8rem;
}

.incoming-call-modal .btn-close:hover {
    opacity: 1;
}

.incoming-call-modal .modal-body {
    padding: 15px;
    background: #f8f9fa;
}

.call-info-small {
    text-align: center;
    margin-bottom: 15px;
}

.caller-info-small {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.caller-name-small {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.caller-name-small i {
    color: #3498db;
    font-size: 1.1rem;
}

.caller-phone-small {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.caller-phone-small i {
    color: #27ae60;
}

.call-actions-small {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.call-actions-small .btn {
    border-radius: 15px;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 60px;
    transition: all 0.3s ease;
}

.caller-info {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.caller-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.caller-name i {
    color: #3498db;
    font-size: 1.4rem;
}

.caller-phone {
    font-size: 1.1rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.caller-phone i {
    color: #27ae60;
}

.call-time {
    font-size: 0.9rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.call-time i {
    color: #f39c12;
}

.call-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.call-actions .btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 1rem;
    min-width: 140px;
    transition: all 0.3s ease;
}

.call-actions .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.call-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.call-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.call-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.call-actions .btn i {
    margin-left: 8px;
}

/* انیمیشن‌ها */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* انیمیشن برای دکمه‌ها */
.call-actions .btn {
    position: relative;
    overflow: hidden;
}

.call-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.call-actions .btn:hover::before {
    left: 100%;
}

/* ریسپانسیو */
@media (max-width: 576px) {
    .incoming-call-small-modal {
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }
    
    .call-actions-small {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .call-actions-small .btn {
        width: 100%;
        min-width: auto;
    }
    
    .caller-name-small {
        font-size: 0.9rem;
    }
    
    .caller-phone-small {
        font-size: 0.8rem;
    }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .incoming-call-modal .modal-body {
        background: #2c3e50;
        color: white;
    }
    
    .caller-info-small {
        background: #34495e;
        color: white;
    }
    
    .caller-name-small {
        color: #ecf0f1;
    }
    
    .caller-phone-small {
        color: #bdc3c7;
    }
}
