.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #111827;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    display: none;
}

.show {
    display: block;
}

/* Modal backdrop */
.modal.fade {
    background-color: transparent;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal dialog */
.modal-dialog {
    max-width: 500px;
    margin: 0 auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Modal content */
.modal-content {
    background-color: #1f2937;
    border: 2px solid rgba(196, 255, 13, 0.3);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(196, 255, 13, 0.2);
    overflow: hidden;
}

/* Modal header */
.modal-header {
    background-color: #111827;
    border-bottom: 2px solid rgba(196, 255, 13, 0.3);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #c4ff0d;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #c4ff0d;
    opacity: 1;
    transform: rotate(90deg);
}

.btn-close::before {
    content: "✕";
}

/* Modal body */
.modal-body {
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modal footer */
.modal-footer {
    border-top: 1px solid #374151;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background-color: #1f2937;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-secondary {
    background-color: #374151;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #4b5563;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-danger {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.5);
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
    transform: scale(0.95);
}

/* Optional: Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.9);
}

.modal.show .modal-dialog {
    transform: scale(1);
}