/**
 * Red Flag Warning Modal Styles
 */

/* Overlay */
.red-flag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal */
.red-flag-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.4s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.red-flag-modal.shake {
    animation: shake 0.5s;
}

/* Icon */
.red-flag-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    color: #dc2626;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.red-flag-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.3));
}

/* Title */
.red-flag-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Message */
.red-flag-message {
    font-size: 16px;
    color: #4b5563;
    margin: 0 0 24px;
    line-height: 1.6;
}

.red-flag-message p {
    margin: 0;
}

/* Action */
.red-flag-action {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 20px;
    font-size: 15px;
    color: #991b1b;
}

.red-flag-action strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional warnings */
.red-flag-additional {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px;
    margin: 0 0 24px;
    font-size: 14px;
    color: #92400e;
}

.red-flag-additional p {
    margin: 0;
}

/* Buttons */
.red-flag-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
}

.red-flag-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-emergency {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-emergency:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-emergency:active {
    transform: translateY(0);
}

.btn-emergency svg {
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Disclaimer */
.red-flag-disclaimer {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.5;
}

.red-flag-disclaimer small {
    display: block;
}

/* Responsive */
@media (max-width: 640px) {
    .red-flag-modal {
        padding: 30px 20px;
        margin: 20px;
    }

    .red-flag-title {
        font-size: 20px;
    }

    .red-flag-message {
        font-size: 15px;
    }

    .red-flag-icon {
        width: 60px;
        height: 60px;
    }

    .red-flag-buttons .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Print styles - hide red flag overlay */
@media print {
    .red-flag-overlay {
        display: none !important;
    }
}
