/* Alert Modal Styles */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: alertFadeIn 0.4s ease-out;
    padding: 1rem;
}

@keyframes alertFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(10px);
    }
}

.alert-modal {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: alertSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.alert-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-modal-header {
    position: relative;
    padding: 1.5rem 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.alert-modal-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.alert-modal-title {
    color: var(--primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    flex-grow: 1;
    margin-right: 1rem;
}

.alert-modal-content {
    padding: 1rem 2rem 2rem 2rem;
}

.alert-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alert-modal-text {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.alert-modal-text p {
    margin-bottom: 1rem;
}

.alert-modal-text p:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .alert-modal-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .alert-modal {
        max-height: calc(100vh - 4rem);
        border-radius: 16px;
    }
    
    .alert-modal-header {
        padding: 1rem 1.5rem 0 1.5rem;
    }
    
    .alert-modal-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .alert-modal-title {
        font-size: 1.25rem;
    }
    
    .alert-modal-text {
        font-size: 0.9rem;
    }
    
    .alert-modal-image {
        max-height: 200px;
        margin-bottom: 1rem;
    }
    
    .alert-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .alert-modal-overlay {
        padding: 0.25rem;
        padding-top: 1rem;
    }
    
    .alert-modal {
        max-height: calc(100vh - 2rem);
        border-radius: 12px;
    }
    
    .alert-modal-header {
        padding: 0.75rem 1rem 0 1rem;
    }
    
    .alert-modal-content {
        padding: 0.75rem 1rem 1rem 1rem;
    }
    
    .alert-modal-title {
        font-size: 1.125rem;
    }
    
    .alert-modal-text {
        font-size: 0.85rem;
    }
}

/* Animation for closing */
.alert-modal-overlay.closing {
    animation: alertFadeOut 0.3s ease-in forwards;
}

.alert-modal-overlay.closing .alert-modal {
    animation: alertSlideOut 0.3s ease-in forwards;
}

@keyframes alertFadeOut {
    from { 
        opacity: 1; 
        backdrop-filter: blur(10px);
    }
    to { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
}

@keyframes alertSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}