/* Açılış ve kapanış animasyonu için başlangıç ve bitiş durumları */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.react-custom-components-ui-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
}

.react-custom-components-ui-modal-container {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.1s ease-in-out;
}

.react-custom-components-ui-modal-header {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    border-bottom-width: 1px;
}

.react-custom-components-ui-modal-title {
    display: flex;
    flex: 1;
}

.react-custom-components-ui-modal-close {
    display: flex;
    width: 28px;
    height: 28px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: #f3f4f6;
    cursor: pointer;
}

.react-custom-components-ui-modal-close:hover {
    background-color: #e5e7eb;
}

.react-custom-components-ui-modal-body {
    font-size: 16px;
    overflow: auto;
    max-height: 75vh;
}

.react-custom-components-ui-modal-footer {
    display: flex;
    justify-content: flex-end;
}

.react-custom-components-ui-modal-footer button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.react-custom-components-ui-modal-footer .react-custom-components-ui-cancel-button {
    background-color: #ccc;
}

.react-custom-components-ui-modal-footer .react-custom-components-ui-confirm-button {
    background-color: #007bff;
    color: white;
}

/* Açıkken */
.react-custom-components-ui-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.react-custom-components-ui-modal-container.show {
    animation: fadeIn 0.1s ease-in-out forwards;
}

/* Kapatırken */
.react-custom-components-ui-modal-container.hide {
    animation: fadeOut 0.1s ease-in-out forwards;
}