
/* ===================
   Modals
   =================== */

/* Modal Customizations */
.modal-card {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.3s ease;
    background-color: var(--modal-background-color);
    color: var(--modal-text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-card-head,
.modal-card-foot {
    padding: 1.5rem;
    background-color: var(--modal-header-footer-background);
    color: var(--modal-title-color);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.modal-card-title {
    color: var(--text-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.modal-card-head .delete {
    background: none;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modal-card-head .delete:hover {
    background: none;
    opacity: 1;
    color: var(--primary-color);
}

.modal-card-head .delete:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.modal-card-body {
    padding: 2rem;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
}

.modal-card-body .field:not(:last-child) {
    margin-bottom: 1.5rem;
}

.modal-card-foot {
    justify-content: flex-end;
    padding: 1.5rem;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.modal-card-foot .button:not(:last-child) {
    margin-right: 0.5rem;
}

.modal-card-foot .button {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-normal);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Primary Button */
.modal-card-foot .button.is-primary {
    background-color: var(--button-primary-background);
    color: var(--button-primary-text);
    border: none;
}

.modal-card-foot .button.is-primary:hover {
    background-color: var(--button-primary-hover-background);
}

/* Secondary Button */
.modal-card-foot .button.is-secondary {
    background-color: var(--button-secondary-background);
    color: var(--button-secondary-text);
    border: 1px solid var(--border-color);
}

.modal-card-foot .button.is-secondary:hover {
    background-color: var(--button-secondary-hover-background);
}

/* Tertiary Button */
.modal-card-foot .button.is-tertiary {
    background-color: var(--button-tertiary-background);
    color: var(--button-tertiary-text);
    border: 1px solid var(--border-color);
}

.modal-card-foot .button.is-tertiary:hover {
    background-color: var(--button-tertiary-hover-background);
}

.modal-card-foot .button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Modal Background */
.modal-background {
    background-color: var(--modal-overlay-color);
}

@media screen and (max-width: 768px) {
    .modal-card {
        width: 90%;
        margin: 0 auto;
    }

    .modal-card-body {
        padding: 1.5rem;
    }
}

.modal-content h2 {
    color: var(--text-color);
}

.modal-content label {
    color: var(--placeholder-color);
}

.modal-content input {
    background: var(--button-background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
