/* ========================================
   MODERN MODAL SYSTEM - Shared Styles
   ======================================== */

/* Modal Overlay */
.modern-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

.modern-modal.show {
    display: flex;
}

/* Modal Content Box */
.modern-modal-content {
    background: white;
    padding: 40px 30px 30px 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
}

/* Close Button (Red Circle X) */
.modern-modal-close {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 50px;
    height: 50px;
    background: #C84C3C;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(200, 76, 60, 0.4);
}

.modern-modal-close:hover {
    background: #b03a2e;
    transform: rotate(90deg);
    box-shadow: 0 6px 16px rgba(200, 76, 60, 0.6);
}

/* Modal Header */
.modern-modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modern-modal-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.modern-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Modal Body */
.modern-modal-body {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Modal Footer (Buttons) */
.modern-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modern-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.modern-modal-btn-primary {
    background: #28a745;
    color: white;
}

.modern-modal-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.modern-modal-btn-danger {
    background: #C84C3C;
    color: white;
}

.modern-modal-btn-danger:hover {
    background: #b03a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 76, 60, 0.3);
}

.modern-modal-btn-secondary {
    background: #6c757d;
    color: white;
}

.modern-modal-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Modal Types */
.modern-modal.success .modern-modal-icon {
    color: #28a745;
}

.modern-modal.error .modern-modal-icon {
    color: #dc3545;
}

.modern-modal.info .modern-modal-icon {
    color: #17a2b8;
}

.modern-modal.warning .modern-modal-icon {
    color: #ffc107;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .modern-modal-content {
        width: 95%;
        padding: 35px 20px 25px 20px;
    }

    .modern-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modern-modal-title {
        font-size: 20px;
    }

    .modern-modal-body {
        font-size: 14px;
    }

    .modern-modal-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
}