/* Notification Popup Styles - Responsive Design */

/* Modal Overlay */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.notification-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.notification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s ease-in-out;
}

.notification-modal-overlay.show .notification-modal-content {
    transform: scale(1) translateY(0);
}

/* Header */
.notification-modal-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.notification-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Content Paragraphs */
.notification-modal-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 18px;
    padding: 15px 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.notification-modal-content p:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.notification-modal-content p:last-of-type {
    margin-bottom: 25px;
}

/* Button Container */
.notification-button-container {
    text-align: center;
    margin-top: 30px;
}

/* Close Button */
.notification-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.notification-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.notification-close-btn:hover::before {
    left: 100%;
}

.notification-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.notification-close-btn:active {
    transform: translateY(-1px);
}

/* Mobile Responsive - Extra Small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .notification-modal-overlay {
        padding: 15px;
    }
    
    .notification-modal-content {
        padding: 25px 20px;
        border-radius: 20px;
        max-height: 85vh;
    }
    
    .notification-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .notification-modal-content p {
        font-size: 0.95rem;
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .notification-close-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
}

/* Small devices (portrait tablets and large phones, 600px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    .notification-modal-content {
        max-width: 450px;
        padding: 28px;
    }
    
    .notification-modal-content h2 {
        font-size: 1.6rem;
    }
    
    .notification-modal-content p {
        font-size: 0.98rem;
    }
}

/* Medium devices (landscape tablets, 768px to 992px) */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    .notification-modal-content {
        max-width: 480px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 993px) {
    .notification-modal-content {
        max-width: 500px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .notification-modal-content {
        max-width: 520px;
        padding: 35px;
    }
    
    .notification-modal-content h2 {
        font-size: 1.9rem;
    }
    
    .notification-modal-content p {
        font-size: 1.05rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Accessibility */
.notification-modal-content:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .notification-modal-overlay {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .notification-modal-content {
        background: white;
        border: 2px solid black;
    }
    
    .notification-modal-content h2,
    .notification-modal-content p {
        color: black;
    }
    
    .notification-close-btn {
        background: black;
        color: white;
        border: 2px solid black;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .notification-modal-overlay,
    .notification-modal-content,
    .notification-close-btn,
    .notification-modal-content p {
        transition: none;
        animation: none;
    }
}