/* 
 * Pet Registration Modal Styles
 * All classes prefixed with .pet-modal- to avoid conflicts with Bootstrap
 */

/* Modal Overlay */
.pet-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.pet-modal-overlay.pet-modal-active {
    display: flex !important;
}

/* Modal Content Container */
.pet-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.pet-modal-content.pet-modal-large {
    max-width: 95%;
    min-width: 800px;
}

/* Modal Header */
.pet-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.pet-modal-header h3 {
    color: #FF5722;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.pet-modal-header p {
    color: #4a5568;
    margin: 0;
}

/* Close Button */
.pet-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pet-modal-close:hover {
    color: #2d3748;
    background: #f7fafc;
}

/* Progress Container */
.pet-modal-progress-container {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Progress Bar */
.pet-modal-progress-bar {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pet-modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5722, #FF8A65);
    border-radius: 12px;
    transition: width 0.8s ease;
    width: 0%;
    position: relative;
}

.pet-modal-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: pet-modal-shimmer 2s infinite;
}

@keyframes pet-modal-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Progress Text */
.pet-modal-progress-text {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Processing Message */
.pet-modal-processing-message {
    font-size: 14px;
    color: #718096;
    margin: 20px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #FF5722;
    text-align: center;
}

/* Processing Steps */
.pet-modal-processing-steps {
    text-align: left;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pet-modal-step {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #f8f9fa;
    border-left: 4px solid #e2e8f0;
}

.pet-modal-step i {
    margin-right: 8px;
    min-width: 16px;
    display: inline-block;
}

.pet-modal-step.pet-modal-step-active {
    background: #FFE0DB;
    border-left-color: #FF5722;
    color: #D84315;
    font-weight: 600;
}

.pet-modal-step.pet-modal-step-completed {
    background: #e8f5e8;
    border-left-color: #4caf50;
    color: #2e7d32;
}

/* Results Section */
.pet-modal-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0DB 100%);
    border-radius: 12px;
    border-left: 4px solid #FF5722;
}

.pet-modal-results-header h4 {
    color: #D84315;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.pet-modal-results-header p {
    color: #4a5568;
    font-size: 1.1rem;
    margin: 0;
}

/* Image Comparison */
.pet-modal-results-images {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.pet-modal-image-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.pet-modal-image-item {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pet-modal-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pet-modal-image-item h5 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
    border-radius: 8px;
    margin: -10px -10px 15px -10px;
}

.pet-modal-image-item.pet-modal-idcard h5 {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.pet-modal-image-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.pet-modal-image-item:hover .pet-modal-image-container {
    border-color: #FF5722;
}

.pet-modal-result-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.pet-modal-image-info {
    font-size: 13px;
    color: #718096;
    margin: 0;
    font-weight: 500;
    padding: 8px;
    background: #f7fafc;
    border-radius: 6px;
}

.pet-modal-arrow {
    font-size: 28px;
    color: #FF5722;
    font-weight: bold;
    margin: 0 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: pet-modal-pulse 2s infinite;
}

@keyframes pet-modal-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Stats Grid */
.pet-modal-processing-stats {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pet-modal-processing-stats h5 {
    color: #4a5568;
    margin-bottom: 15px;
}

.pet-modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.pet-modal-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pet-modal-stat-label {
    font-weight: 600;
    color: #4a5568;
}

.pet-modal-stat-value {
    color: #FF5722;
    font-weight: bold;
}

/* Action Buttons */
.pet-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-top: 3px solid #FF5722;
}

.pet-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 180px;
    justify-content: center;
}

.pet-modal-btn-primary {
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.pet-modal-btn-secondary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.pet-modal-btn-outline {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pet-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pet-modal-btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
}

.pet-modal-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

.pet-modal-btn-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pet-modal-content {
        margin: 10px;
        padding: 20px;
        max-width: 95%;
    }

    .pet-modal-content.pet-modal-large {
        min-width: auto;
        max-width: 95%;
    }

    .pet-modal-image-comparison {
        flex-direction: column;
        gap: 15px;
    }

    .pet-modal-image-item {
        min-width: auto;
        max-width: 280px;
        margin: 0 auto;
    }

    .pet-modal-image-container {
        width: 140px;
        height: 140px;
    }

    .pet-modal-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
        font-size: 24px;
    }

    .pet-modal-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .pet-modal-btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }

    .pet-modal-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
