﻿/* wwwroot/css/modal.css */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    pointer-events: none;
}

    .modal.show {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border: 1px solid #ddd;
    animation: modalPop 0.5s ease forwards;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1002;
}

    .close:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }

.list-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px;
    padding: 15px;
}

.list-group-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    background: #f8f9fa;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    height: 30px;
    text-align: center;
    font-size: 14px;
}

    .list-group-item:hover {
        background: #e9ecef;
        transform: scale(1.05);
    }

    .list-group-item.selected {
        background: #28a745;
        color: #fff;
        border-color: #218838;
    }

        .list-group-item.selected:hover {
            background: #218838;
        }

.list-group::-webkit-scrollbar {
    width: 8px;
}

.list-group::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

.list-group::-webkit-scrollbar-track {
    background: #f8f9fa;
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
