/**
 * StyleUI Styles - Modal
 * Component-specific styles for modals.
 */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-backdrop.show {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-layer-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: var(--z-modal);
    opacity: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-sm {
    max-width: 300px;
}

.modal-lg {
    max-width: 800px;
}

/*
 * Override card footer styles when inside a modal for a cleaner look.
 * This removes the separate background and integrates the actions into the main modal body.
 */
.modal .card-footer {
    /* background-color: transparent; */
    padding-top: 0;
}

.modal .card {
    margin-bottom: 0;
} 