﻿.ModalMessage {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.ModalMessage-content {
    background-color: #fff;
    margin: 15% auto;
    position: relative;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.ModalMessage-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ModalMessage-header h2 {
        margin: 0;
        font-size: 1.25rem;
        color: #111827;
    }

.ModalMessage-close-btn {
    color: #fff;
    background-color: var(--main-color);
    padding: 8px 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ModalMessage-close-btn-cross {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    text-align: right;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 5px;
}

.ModalMessage-body {
    padding: 24px;
    color: #374151;
    line-height: 1.5;
}

.ModalMessage-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ModalMessage-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.ModalMessage-btn-primary:hover {
    background-color: #2563eb;
}

.ModalMessage-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.ModalMessage-btn-secondary:hover {
    background-color: #d1d5db;
}

.ModalMessage-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
