/* ==================== CUSTOM MODAL STYLES ==================== */

:root {
    --modal-width-desktop: 600px;
    --modal-width-tablet: 80vw;
    --modal-width-mobile: 90vw;
}

/* Overlay */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
    overflow-y: auto;
}

.custom-modal-overlay.active {
    display: flex;
}

/* Modal Content Container */
.custom-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    width: var(--modal-width-desktop);
    max-width: var(--modal-width-desktop);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Header */
.custom-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Modal Icon */
.custom-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.custom-modal-icon.warning {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.custom-modal-icon.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.custom-modal-icon.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.custom-modal-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Modal Title */
.custom-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Modal Body */
.custom-modal-body {
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin: 1rem 0;
}

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Modal Buttons */
.custom-modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.custom-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.custom-modal-btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.custom-modal-btn-cancel:active {
    transform: translateY(0);
}

.custom-modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.custom-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.custom-modal-btn-confirm:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tablet/Medium Screens */
@media (max-width: 768px) {
    .custom-modal-content {
        width: var(--modal-width-tablet);
        max-width: var(--modal-width-tablet);
        padding: 1.5rem;
    }

    .custom-modal-title {
        font-size: 1.25rem;
    }

    .custom-modal-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    .custom-modal-content {
        width: var(--modal-width-mobile);
        max-width: var(--modal-width-mobile);
        padding: 1.25rem;
    }

    .custom-modal-title {
        font-size: 1.1rem;
    }

    .custom-modal-body {
        font-size: 0.95rem;
    }

    .custom-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .custom-modal-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
    }
}
