/* assets/styles/modal.css */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    /* Fade in animation */
    animation: fadeIn 0.3s;
}

.modal.is-open {
    display: block;
}

.modal-content {
    background-color: var(--surface-color);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    /* Slide in animation */
    animation: slideIn 0.3s;
}

.modal-content .modal-title {
    color: var(--accent-color);
    margin-top: 0;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-danger {
    background-color: #ff4b4b !important;
    color: white !important;
    border: none;
}
.btn-danger:hover {
    background-color: #e83a3a !important;
}

.btn-secondary {
    background-color: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}