.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    min-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #666;
    transition: color 0.2s;
}

.close-button:hover {
    color: #333;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    font-size: 1.2rem;
    color: #666;
}

/* Recording modal specific styles */
.recording-details {
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.recording-details p {
    margin: 0.75rem 0;
    line-height: 1.4;
}

.recording-details strong {
    color: #555;
    margin-right: 0.5rem;
}

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