/* Shared Modal Styles for Consistency Across Components - Refactored */

/* Modal Overlay */
body .modal-overlay, /* Prefixed to remove !important */
body .list-modal-overlay { /* Prefixed to remove !important */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
}

/* Modal Header for List Modals */
.list-modal-header { /* Kept for list-specific modals */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0 0 0.5rem 0;
}

@media (max-width: 1024px) {
    .list-modal-header {
        margin-bottom: 0.75rem;
        padding: 0 0 0.35rem 0;
    }
}

@media (max-width: 768px) {
    .list-modal-header {
        margin-bottom: 0.5rem;
        padding: 0 0 0.25rem 0;
    }
}

/* Modal Title (generic, for potential use by list modals) */
.modal-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: .5rem;
    padding-top: .25rem;
}

@media (max-width: 1024px) {
    .modal-title {
        font-size: 1.6rem;
        margin-bottom: .35rem;
    }
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 1.1rem;
        margin-bottom: .25rem;
        padding-top: .15rem;
    }
}

/* List Modal Buttons */
.list-modal-button { /* Kept as it's specific to list modals */
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.list-modal-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for List Modal Buttons */
@media (max-width: 1024px) {
    .list-modal-button {
        font-size: 1.1rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 768px) {
    .list-modal-button {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
}
