/* ============================================
   CALL RESULT MODAL - DESIGN MODERNO
   ============================================ */

/* Spinner Container - Animação suave */
.spinner-container {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Call Icon Wrapper - Animação de entrada */
.call-icon-wrapper {
    animation: iconEntry 0.6s ease-out;
}

@keyframes iconEntry {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Icon Box - Efeito de hover */
.icon-box {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* Result Container - Animação de fade in */
.result_container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Cards - Hover effect */
#myModal .card {
    transition: all 0.3s ease;
    border-width: 2px;
}

#myModal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Text Animations */
#call_status,
#dial_number,
#dial_response {
    transition: all 0.3s ease;
}

/* Icon Colors - Status específicos */
.text-ringing {
    color: #3b82f6 !important;
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

.text-in-progress {
    color: #10b981 !important;
    animation: callPulse 1.5s ease-in-out infinite;
}

@keyframes callPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loading State - Melhoria visual */
#myModal .loading {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Status Badge Colors */
.status-completed {
    color: #10b981 !important;
}

.status-failed {
    color: #ef4444 !important;
}

.status-busy {
    color: #f59e0b !important;
}

.status-no-answer {
    color: #6b7280 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 0.75rem !important;
    }
    
    .icon-box i {
        font-size: 1rem !important;
    }
    
    #result_icon {
        font-size: 60px !important;
    }
    
    #myModal .card-body {
        padding: 1rem !important;
    }
}

/* Modal Footer - Better spacing */
#myModal .modal-footer {
    padding: 1.5rem;
}

#myModal .modal-footer .btn {
    min-width: 120px;
    transition: all 0.3s ease;
}

#myModal .modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions para show/hide */
#myModal .loading,
#myModal .result_container {
    transition: all 0.3s ease;
}

