/* UMM Modal Styles */
.umm-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

@keyframes blink {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 
                    0 0 60px rgba(255, 0, 0, 0.6),
                    0 0 90px rgba(255, 0, 0, 0.4);
        border-color: #ff0000;
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 165, 0, 1), 
                    0 0 100px rgba(255, 165, 0, 0.8),
                    0 0 150px rgba(255, 165, 0, 0.6);
        border-color: #ffa500;
    }
}

.umm-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    border: 3px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    animation: blink 1.5s ease-in-out infinite;
    position: relative;
}

.umm-modal-title {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    font-weight: 700;
}

.umm-modal-body {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.umm-region-alert {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.umm-region-alert h3 {
    color: #ff6666;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.umm-region-alert p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.umm-modal-close-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.umm-modal-close-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.umm-modal-close-btn:active {
    transform: translateY(0);
}

/* Trigger (scheduled) message theme */
.umm-modal-content.trigger-msg-theme {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 45%, #3a506b 100%);
    border: 3px solid #5bc0be;
    box-shadow: 0 0 35px rgba(91, 192, 190, 0.55);
    animation: triggerPulse 2.2s ease-in-out infinite;
}

.umm-modal-content.trigger-msg-theme .umm-modal-title {
    color: #f7b267;
    text-shadow: 0 0 8px rgba(247, 178, 103, 0.6);
}

.umm-modal-content.trigger-msg-theme .umm-modal-close-btn {
    background: linear-gradient(135deg, #5bc0be 0%, #3a86ff 100%);
    color: #082032;
}

.umm-modal-content.trigger-msg-theme .umm-modal-close-btn:hover {
    background: linear-gradient(135deg, #8be9e7 0%, #67a6ff 100%);
    box-shadow: 0 4px 16px rgba(91, 192, 190, 0.45);
}

.umm-region-alert.trigger-region-alert {
    background: linear-gradient(120deg, rgba(255, 195, 113, 0.15) 0%, rgba(255, 123, 123, 0.16) 50%, rgba(111, 168, 220, 0.15) 100%);
    border-left: 5px solid #f7b267;
    border-radius: 10px;
}

.umm-region-alert.trigger-region-alert h3 {
    color: #ffe29a;
}

@keyframes triggerPulse {
    0%, 100% {
        border-color: #5bc0be;
        box-shadow: 0 0 28px rgba(91, 192, 190, 0.5);
    }
    50% {
        border-color: #f7b267;
        box-shadow: 0 0 36px rgba(247, 178, 103, 0.55);
    }
}


/* Flow Alert Modal Styles */
.flow-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.flow-modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: blinkFlowBorder 1.5s infinite, slideDown 0.3s ease-out;
    border: 4px solid #3b82f6;
}

@keyframes blinkFlowBorder {
    0%, 100% { border-color: #3b82f6; box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
    50% { border-color: #60a5fa; box-shadow: 0 0 40px rgba(96, 165, 250, 0.8); }
}

.flow-modal-title {
    color: white;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.flow-modal-body {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #333;
}

.flow-alert-content {
    padding: 15px;
}

.flow-alert-content h3 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
}

.flow-alert-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.flow-alert-content strong {
    color: #1e40af;
    font-weight: 600;
}

.flow-modal-close-btn {
    width: 100%;
    padding: 12px 24px;
    background: white;
    color: #1e3a8a;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-modal-close-btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.flow-modal-close-btn:active {
    transform: translateY(0);
}