/* Fix for play button visibility in after-call mode */

/* Override the inline styles for the play button */
.after-call-only button[title="Play Recording"] {
    /* Dark background with blue accent for better visibility */
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 0 0 4px rgba(255, 255, 255, 0.1),
                inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
}

/* Play icon styling */
.after-call-only button[title="Play Recording"] i {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Hover state */
.after-call-only button[title="Play Recording"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 0 4px rgba(255, 255, 255, 0.15),
                inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

/* Add a subtle pulse animation to draw attention */
@keyframes playButtonPulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                    0 0 0 4px rgba(255, 255, 255, 0.1),
                    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                    0 0 0 8px rgba(59, 130, 246, 0.3),
                    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                    0 0 0 4px rgba(255, 255, 255, 0.1),
                    inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

.after-call-only button[title="Play Recording"] {
    animation: playButtonPulse 2s ease-in-out infinite;
}

/* Stop animation on hover */
.after-call-only button[title="Play Recording"]:hover {
    animation: none;
}

/* Alternative circular design with better contrast */
.play-button-enhanced {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
    border: 3px solid white !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.play-button-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #60a5fa, #1e40af, #60a5fa);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button-enhanced:hover::before {
    opacity: 1;
}

/* Ensure the play icon is centered and visible */
.play-button-enhanced i.fa-play {
    font-size: 3.5rem !important;
    color: white !important;
    margin-left: 8px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1;
}