/* Triage iFrame Styles */

/* Button styling for the iframe CTA */
#triageIframeCTA {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

#triageIframeCTA:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    text-decoration: none !important;
    color: white !important;
}

#triageIframeCTA:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Modal styling for the iframe */
#triageIframeModal .modal-dialog {
    max-width: 85%;
    margin: 2rem auto;
}

#triageIframeModal .modal-content {
    height: 75vh;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#triageIframeModal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

#triageIframeModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#triageIframeModal .modal-body {
    padding: 0;
    height: calc(75vh - 100px);
    overflow: hidden;
}

#triageIframeModal .modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Loading indicator styling */
#iframeLoadingIndicator {
    background-color: #f8f9fa;
    color: #6c757d;
}

#iframeLoadingIndicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error state styling */
#iframeLoadingIndicator .text-danger {
    color: #dc3545 !important;
}

#iframeLoadingIndicator .fa-exclamation-triangle {
    color: #ffc107;
}

/* Iframe styling */
#triageIframe {
    border: none;
    border-radius: 0 0 8px 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #triageIframeModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    #triageIframeModal .modal-content {
        height: 85vh;
    }

    #triageIframeModal .modal-body {
        height: calc(85vh - 100px);
    }

    #triageIframeCTA {
        font-size: 12px;
        padding: 6px 10px;
    }

    #triageIframeCTA .badge {
        font-size: 8px;
    }
}

/* Animation for button appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#triageIframeCTA {
    animation: slideInUp 0.5s ease-out;
}

/* New badge pulse animation */
#triageIframeCTA .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Focus states for accessibility */
#triageIframeCTA:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* Additional iframe styles */

#triageIframeModal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Loading state for iframe */
#triageIframeModal .modal-body::before {
    content: "Loading Triage Queue...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

#triageIframeModal iframe:not([src=""])+.modal-body::before {
    display: none;
}

#triageIframeModal .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading spinner customization */
.spinner-border-primary {
    color: #007bff;
}

/* Modal backdrop customization */
#triageIframeModal.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#triageIframeModal.modal.show .modal-dialog {
    transform: none;
}