.zf-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.zf-modal-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 1rem;
}

.zf-modal {
    background-color: var(--zf-card-bg, #ffffff);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.size-small {
    max-width: 24rem;
}

.size-medium {
    max-width: 36rem;
}

.size-large {
    max-width: 48rem;
}

.size-xl {
    max-width: 64rem;
}

.zf-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--zf-card-border, #e5e7eb);
}

.zf-modal .modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zf-text-primary, #1f2937);
}

.zf-modal .modal-close {
    padding: 0.25rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    color: var(--zf-text-secondary, #6b7280);
    transition: color 0.15s ease-in-out;
}

.zf-modal .modal-close:hover {
    color: var(--zf-text-primary, #1f2937);
}

.zf-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.zf-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--zf-card-border, #e5e7eb);
    background-color: var(--zf-card-footer-bg, #f9fafb);
    border-radius: 0 0 0.75rem 0.75rem;
}
