/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Table Styles */
table {
    font-size: 0.875rem;
}

th {
    position: sticky;
    top: 0;
    background-color: #2563eb;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        padding: 15px;
        max-height: 95vh;
    }
    
    table {
        font-size: 0.75rem;
    }
}