/* --- EXISTING UPLOAD STYLES --- */
.amorpdf-main-wrapper { width: 100%; max-width: 800px; margin: 0 auto; text-align: center; padding: 40px 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
.amorpdf-heading-area { margin-bottom: 2rem; }
.amorpdf-main-title { font-size: 2.5rem; font-weight: 700; color: #0f172a; }
.amorpdf-upload-card { display: block; background-color: #ffffff; border: 2px dashed #cbd5e1; border-radius: 24px; padding: 3rem; cursor: pointer; transition: all 0.3s ease; margin-bottom: 2rem; }
.amorpdf-upload-card:hover { border-color: #F93529; background-color: #fff1f1; }
.amorpdf-icon-circle { width: 80px; height: 80px; background-color: #fff1f1; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: #EC271E; }
.amorpdf-card-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; }
.amorpdf-card-subtitle { color: #64748b; }
.amorpdf-features-row { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; color: #64748b; font-weight: 500; }
.amorpdf-description-text { color: #64748b; line-height: 1.6; }
.hidden { display: none !important; }

/* --- GLOBAL ERROR MODAL STYLES (FIXED) --- */
.penm-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    display: none; /* Hidden by default */
    align-items: center; 
    justify-content: center;
    z-index: 9999999; /* Max Z-Index */
    backdrop-filter: blur(4px);
}

/* When active, force display flex */
.penm-overlay.active { 
    display: flex !important; 
    animation: fadeIn 0.2s ease-out forwards;
}

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

.penm-modal {
    background: #ffffff; 
    width: 90%; 
    max-width: 450px; 
    padding: 30px; 
    border-radius: 16px;
    text-align: center; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative; 
    font-family: 'Inter', sans-serif;
    transform: scale(0.95);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn { to { transform: scale(1); } }

.penm-icon-box {
    width: 70px; height: 70px; background-color: rgba(242, 46, 36, 0.1); color: #F22E24;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto;
}
.penm-icon-box svg { width: 36px; height: 36px; stroke-width: 2; }

.penm-title { color: #1f2937; font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.penm-message { color: #6b7280; font-size: 15px; line-height: 1.5; margin-bottom: 25px; }

.penm-actions { display: flex; flex-direction: column; gap: 10px; }
.penm-btn { padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: 0.2s; }
.penm-btn-primary { background: linear-gradient(135deg, #F22E24 0%, #F8362A 100%); color: white; box-shadow: 0 4px 6px rgba(242, 46, 36, 0.25); }
.penm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(242, 46, 36, 0.35); }

.penm-close-icon { position: absolute; top: 15px; right: 15px; cursor: pointer; color: #9ca3af; background: transparent; border: none; }
.penm-close-icon:hover { color: #F22E24; }